1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/adapters
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
..
mysql2 applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
postgresql Fix a NoMethodError schema_statements.rb 2016-08-10 10:44:08 +03:00
sqlite3 applies remaining conventions across the project 2016-08-06 20:20:22 +02:00