aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2012-12-12 21:51:38 +0100
committerYves Senn <yves.senn@garaio.com>2012-12-13 09:08:32 +0100
commit349d4606004d20cb0ace1980bcb6d0af13f6b504 (patch)
tree9a3b26f3f5e2be349cafd96e7a343435824f7e35 /activerecord/test/migrations
parentd4333eded218346eb8b8313f7c69851782f594ef (diff)
downloadrails-349d4606004d20cb0ace1980bcb6d0af13f6b504.tar.gz
rails-349d4606004d20cb0ace1980bcb6d0af13f6b504.tar.bz2
rails-349d4606004d20cb0ace1980bcb6d0af13f6b504.zip
recognize migrations, in folders containing numbers and 'rb'.
Closes #8492
Diffstat (limited to 'activerecord/test/migrations')
-rw-r--r--activerecord/test/migrations/10_urban/9_add_expressions.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/migrations/10_urban/9_add_expressions.rb b/activerecord/test/migrations/10_urban/9_add_expressions.rb
new file mode 100644
index 0000000000..79a342e574
--- /dev/null
+++ b/activerecord/test/migrations/10_urban/9_add_expressions.rb
@@ -0,0 +1,11 @@
+class AddExpressions < ActiveRecord::Migration
+ def self.up
+ create_table("expressions") do |t|
+ t.column :expression, :string
+ end
+ end
+
+ def self.down
+ drop_table "expressions"
+ end
+end