Skip to content
Browse files

fix error when no table present

  • Loading branch information...
1 parent 85a045c commit 79e9fd69e751f48eb4aa24674d711525053e58c7 @joshsusser committed Apr 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/schema.rb
View
2 activerecord/lib/active_record/schema.rb
@@ -46,7 +46,7 @@ def self.migrations_path
# ...
# end
def self.define(info={}, &block)
- Base.connection.drop_table(ActiveRecord::Migrator.schema_migrations_table_name)
+ Base.connection.drop_table(ActiveRecord::Migrator.schema_migrations_table_name) if Base.connection.table_exists?(ActiveRecord::Migrator.schema_migrations_table_name)
initialize_schema_migrations_table
instance_eval(&block)

0 comments on commit 79e9fd6

Please sign in to comment.
Something went wrong with that request. Please try again.