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/4_innocent_jointable.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/4_innocent_jointable.rb')
-rw-r--r-- | activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb b/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb new file mode 100644 index 0000000000..21c9ca5328 --- /dev/null +++ b/activerecord/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb @@ -0,0 +1,12 @@ +class InnocentJointable < ActiveRecord::Migration + def self.up + create_table("people_reminders", :id => false) do |t| + t.column :reminder_id, :integer + t.column :person_id, :integer + end + end + + def self.down + drop_table "people_reminders" + end +end
\ No newline at end of file |