diff --git a/tasks/database.rb b/tasks/database.rb index 0ec4bb76d..19e642517 100644 --- a/tasks/database.rb +++ b/tasks/database.rb @@ -40,7 +40,7 @@ def drop_tables ordered_tables.each do | table_name | database.drop_table(table_name, cascade: psql?) end - database.drop_table(:schema_migrations) + database.drop_table(:schema_migrations) if database.table_exists?(:schema_migrations) end def drop_views