1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Genadi Samokovarov 01fbdb311d Fix a NoMethodError schema_statements.rb
If you call `remove_index` with wrong options, say a type, like I did,
you get:

```
== 20160810072541 RemoveUniqueIndexOnGoals: migrating =========================
-- remove_index(:goal, {:coulmn=>:kid_id, :unique=>true})
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:

undefined method `ArgumentError' for #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter:0x007fb7dec91b28>
```

What happened is that I mistyped column (coulmn) and got a
`NoMethodError`, because of a missing comma during the raise. This made
Ruby think we're calling the method `ArgumentError`.
2016-08-10 10:44:08 +03:00
..
active_record Fix a NoMethodError schema_statements.rb 2016-08-10 10:44:08 +03:00
rails/generators normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
active_record.rb applies new string literal convention in activerecord/lib 2016-08-06 18:26:45 +02:00