aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2011-12-09 03:15:59 +0100
committerPiotr Sarnacki <drogus@gmail.com>2011-12-09 03:33:06 +0100
commit1d9de9d7585f2c753b629080b1239969aaf8499a (patch)
tree7a74cdca5cf071eb589640a4d3dddfbe9bf06eb6 /activerecord/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb
parentb164ab75d65fa0c8a93c287835091bc704c226f1 (diff)
downloadrails-1d9de9d7585f2c753b629080b1239969aaf8499a.tar.gz
rails-1d9de9d7585f2c753b629080b1239969aaf8499a.tar.bz2
rails-1d9de9d7585f2c753b629080b1239969aaf8499a.zip
Run also migrations in subdirectories.
With this commit, ActiveRecord will also look for migrations in db/migrate subdirectories.
Diffstat (limited to 'activerecord/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb')
-rw-r--r--activerecord/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb b/activerecord/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb
new file mode 100644
index 0000000000..d5e71ce8ef
--- /dev/null
+++ b/activerecord/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb
@@ -0,0 +1,12 @@
+class WeNeedReminders < ActiveRecord::Migration
+ def self.up
+ create_table("reminders") do |t|
+ t.column :content, :text
+ t.column :remind_at, :datetime
+ end
+ end
+
+ def self.down
+ drop_table "reminders"
+ end
+end \ No newline at end of file