Skip to content

Commit

Permalink
chore: only drop schema_migrations if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 11, 2018
1 parent 2174b21 commit d3b67c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3b67c3

Please sign in to comment.