diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-23 05:49:40 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-23 05:49:40 +0000 |
commit | 8cbe22ab5155680fa0ef2da4321a4f291aaf78fe (patch) | |
tree | 6b4c0676a61a4d18aefe477195236b599010aa5d /activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb | |
parent | 32dcfa69131e1a26829e392cc66093624226be83 (diff) | |
download | rails-8cbe22ab5155680fa0ef2da4321a4f291aaf78fe.tar.gz rails-8cbe22ab5155680fa0ef2da4321a4f291aaf78fe.tar.bz2 rails-8cbe22ab5155680fa0ef2da4321a4f291aaf78fe.zip |
Migrations: gracefully handle missing migration files. Closes #5857.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb')
-rw-r--r-- | activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb b/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb new file mode 100644 index 0000000000..753ee34152 --- /dev/null +++ b/activerecord/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb @@ -0,0 +1,9 @@ +class PeopleHaveMiddleNames < ActiveRecord::Migration + def self.up + add_column "people", "middle_name", :string + end + + def self.down + remove_column "people", "middle_name" + end +end
\ No newline at end of file |