diff options
Diffstat (limited to 'activerecord/test/migrations/to_copy')
-rw-r--r-- | activerecord/test/migrations/to_copy/1_people_have_hobbies.rb | 11 | ||||
-rw-r--r-- | activerecord/test/migrations/to_copy/2_people_have_descriptions.rb | 11 |
2 files changed, 22 insertions, 0 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 new file mode 100644 index 0000000000..badccf65cc --- /dev/null +++ b/activerecord/test/migrations/to_copy/1_people_have_hobbies.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class PeopleHaveHobbies < ActiveRecord::Migration::Current + def self.up + add_column "people", "hobbies", :text + end + + def self.down + remove_column "people", "hobbies" + end +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 new file mode 100644 index 0000000000..1d19d5d6f4 --- /dev/null +++ b/activerecord/test/migrations/to_copy/2_people_have_descriptions.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class PeopleHaveDescriptions < ActiveRecord::Migration::Current + def self.up + add_column "people", "description", :text + end + + def self.down + remove_column "people", "description" + end +end |