only drop 'user_firsts' table if it exists

This commit is contained in:
Régis Hanol 2016-04-12 19:56:25 +02:00
parent c30784394f
commit f95f488a0b

View file

@ -1,6 +1,6 @@
class RemoveUserFirsts < ActiveRecord::Migration class RemoveUserFirsts < ActiveRecord::Migration
def up def up
drop_table :user_firsts drop_table(:user_firsts) if table_exists?(:user_firsts)
rescue rescue
# continues with other migrations if we can't delete that table # continues with other migrations if we can't delete that table
nil nil