only drop 'user_firsts' table if it exists
This commit is contained in:
parent
c30784394f
commit
f95f488a0b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue