diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-10 01:22:52 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-10 03:46:56 -0300 |
commit | 697ab08af981a6c9089540883e85414c2457a881 (patch) | |
tree | 1a8bc853ed7518ba47bf07f5927016914d57b206 /activerecord/lib/active_record/migration | |
parent | 8ecc5ab1d88532a239f17c7520ed922c7579b01c (diff) | |
download | rails-697ab08af981a6c9089540883e85414c2457a881.tar.gz rails-697ab08af981a6c9089540883e85414c2457a881.tar.bz2 rails-697ab08af981a6c9089540883e85414c2457a881.zip |
Add migration compatibility class for Rails 5.1
Diffstat (limited to 'activerecord/lib/active_record/migration')
-rw-r--r-- | activerecord/lib/active_record/migration/compatibility.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration/compatibility.rb b/activerecord/lib/active_record/migration/compatibility.rb index 69bd9ff1cf..74833f938f 100644 --- a/activerecord/lib/active_record/migration/compatibility.rb +++ b/activerecord/lib/active_record/migration/compatibility.rb @@ -11,7 +11,7 @@ module ActiveRecord const_get(name) end - V5_0 = Current + V5_1 = Current module FourTwoShared module TableDefinition @@ -102,6 +102,9 @@ module ActiveRecord end end + class V5_0 < V5_1 + end + class V4_2 < V5_0 # 4.2 is defined as a module because it needs to be shared with # Legacy. When the time comes, V5_0 should be defined straight |