From d5859d0b17ccbf5907a2eb2a979257ec6474e677 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Mon, 31 Oct 2005 15:43:02 +0000 Subject: 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 --- .../migrations_with_duplicate/1_people_have_last_names.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb (limited to 'activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb') diff --git a/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb b/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb new file mode 100644 index 0000000000..009729b330 --- /dev/null +++ b/activerecord/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb @@ -0,0 +1,9 @@ +class PeopleHaveLastNames < ActiveRecord::Migration + def self.up + add_column "people", "last_name", :string + end + + def self.down + remove_column "people", "last_name" + end +end \ No newline at end of file -- cgit v1.2.3