aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb
diff options
context:
space:
mode:
authorFlorian Weber <csshsh@gmail.com>2005-10-31 15:43:02 +0000
committerFlorian Weber <csshsh@gmail.com>2005-10-31 15:43:02 +0000
commitd5859d0b17ccbf5907a2eb2a979257ec6474e677 (patch)
treeb07dfefafcc77862cffd125e46abbd99f169c1fc /activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb
parentaa0f382d080b0e9761f68323b7f8cc5219c0758b (diff)
downloadrails-d5859d0b17ccbf5907a2eb2a979257ec6474e677.tar.gz
rails-d5859d0b17ccbf5907a2eb2a979257ec6474e677.tar.bz2
rails-d5859d0b17ccbf5907a2eb2a979257ec6474e677.zip
Added that an DuplicateMigrationVersionError gets raised when multiple migrations have the same version number.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb')
-rw-r--r--activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb b/activerecord/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb
new file mode 100644
index 0000000000..ac5918f02a
--- /dev/null
+++ b/activerecord/test/fixtures/migrations_with_duplicate/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