aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/to_copy
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2015-12-06 06:44:22 +1030
committerMatthew Draper <matthew@trebex.net>2015-12-15 17:18:09 +1030
commita6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e (patch)
tree8bc391ef4d3751e459b859bed969a6eec690e64c /activerecord/test/migrations/to_copy
parentdc8d40af5856e40bac7ed9d21198395e6a3fb93c (diff)
downloadrails-a6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e.tar.gz
rails-a6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e.tar.bz2
rails-a6d4e5e5320d90dac9e9e7dbfbea6bdc093af10e.zip
Internal test migrations use the private 'Current' version
Apart from specific versioning support, our tests should focus on the behaviour of whatever version they're accompanying, regardless of when they were written. Application code should *not* do this.
Diffstat (limited to 'activerecord/test/migrations/to_copy')
-rw-r--r--activerecord/test/migrations/to_copy/1_people_have_hobbies.rb2
-rw-r--r--activerecord/test/migrations/to_copy/2_people_have_descriptions.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/migrations/to_copy/1_people_have_hobbies.rb b/activerecord/test/migrations/to_copy/1_people_have_hobbies.rb
index 639841f663..607113b091 100644
--- a/activerecord/test/migrations/to_copy/1_people_have_hobbies.rb
+++ b/activerecord/test/migrations/to_copy/1_people_have_hobbies.rb
@@ -1,4 +1,4 @@
-class PeopleHaveLastNames < ActiveRecord::Migration
+class PeopleHaveLastNames < ActiveRecord::Migration::Current
def self.up
add_column "people", "hobbies", :text
end
diff --git a/activerecord/test/migrations/to_copy/2_people_have_descriptions.rb b/activerecord/test/migrations/to_copy/2_people_have_descriptions.rb
index b3d0b30640..d4cbddab50 100644
--- a/activerecord/test/migrations/to_copy/2_people_have_descriptions.rb
+++ b/activerecord/test/migrations/to_copy/2_people_have_descriptions.rb
@@ -1,4 +1,4 @@
-class PeopleHaveLastNames < ActiveRecord::Migration
+class PeopleHaveLastNames < ActiveRecord::Migration::Current
def self.up
add_column "people", "description", :text
end