diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-10 13:14:27 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-10 13:14:27 -0700 |
commit | e5249a7970251ed802dd895963fe9734c4ec1064 (patch) | |
tree | 814599affd79f6c83a99070367e7b8dbaf5f70de /activerecord/test/cases/migration | |
parent | 4f940820f29f8fc9c9113baca709aae11683b596 (diff) | |
parent | 3a21870c6ff33e8e4add102b3757af60367a17d7 (diff) | |
download | rails-e5249a7970251ed802dd895963fe9734c4ec1064.tar.gz rails-e5249a7970251ed802dd895963fe9734c4ec1064.tar.bz2 rails-e5249a7970251ed802dd895963fe9734c4ec1064.zip |
Merge pull request #11826 from etipton/enable_extensions_revertible
Make 'enable_extension' revertible
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/command_recorder_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/command_recorder_test.rb b/activerecord/test/cases/migration/command_recorder_test.rb index 2cad8a6d96..1b205d372f 100644 --- a/activerecord/test/cases/migration/command_recorder_test.rb +++ b/activerecord/test/cases/migration/command_recorder_test.rb @@ -242,6 +242,16 @@ module ActiveRecord add = @recorder.inverse_of :remove_belongs_to, [:table, :user] assert_equal [:add_reference, [:table, :user], nil], add end + + def test_invert_enable_extension + disable = @recorder.inverse_of :enable_extension, ['uuid-ossp'] + assert_equal [:disable_extension, ['uuid-ossp'], nil], disable + end + + def test_invert_disable_extension + enable = @recorder.inverse_of :disable_extension, ['uuid-ossp'] + assert_equal [:enable_extension, ['uuid-ossp'], nil], enable + end end end end |