aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/valid_with_subdirectories/1_valid_people_have_last_names.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/migrations/valid_with_subdirectories/1_valid_people_have_last_names.rb')
-rw-r--r--activerecord/test/migrations/valid_with_subdirectories/1_valid_people_have_last_names.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/migrations/valid_with_subdirectories/1_valid_people_have_last_names.rb b/activerecord/test/migrations/valid_with_subdirectories/1_valid_people_have_last_names.rb
new file mode 100644
index 0000000000..3bedcdcdf0
--- /dev/null
+++ b/activerecord/test/migrations/valid_with_subdirectories/1_valid_people_have_last_names.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class ValidPeopleHaveLastNames < ActiveRecord::Migration::Current
+ def self.up
+ add_column "people", "last_name", :string
+ end
+
+ def self.down
+ remove_column "people", "last_name"
+ end
+end