diff options
author | kennyj <kennyj@gmail.com> | 2012-01-04 10:25:15 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-01-04 14:54:38 +0900 |
commit | 6012970fea9d3385cd0a515aa353b47d0837d55a (patch) | |
tree | 9a47272576e438d68c50901f090bb8379fa6ed11 /activerecord/test/cases/migration/command_recorder_test.rb | |
parent | 63f7a61246aa570ed6891cdd225df8d67e4ecc13 (diff) | |
download | rails-6012970fea9d3385cd0a515aa353b47d0837d55a.tar.gz rails-6012970fea9d3385cd0a515aa353b47d0837d55a.tar.bz2 rails-6012970fea9d3385cd0a515aa353b47d0837d55a.zip |
Fix GH #4285. Remove options when we record calling creat_table
Diffstat (limited to 'activerecord/test/cases/migration/command_recorder_test.rb')
-rw-r--r-- | activerecord/test/cases/migration/command_recorder_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/command_recorder_test.rb b/activerecord/test/cases/migration/command_recorder_test.rb index d108b456f0..8f136bce2b 100644 --- a/activerecord/test/cases/migration/command_recorder_test.rb +++ b/activerecord/test/cases/migration/command_recorder_test.rb @@ -67,6 +67,12 @@ module ActiveRecord assert_equal [:drop_table, [:system_settings]], drop_table end + def test_invert_create_table_with_options + @recorder.record :create_table, [:people_reminders, {:id => false}] + drop_table = @recorder.inverse.first + assert_equal [:drop_table, [:people_reminders]], drop_table + end + def test_invert_rename_table @recorder.record :rename_table, [:old, :new] rename = @recorder.inverse.first |