mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
only drop 'user_firsts' table if it exists
This commit is contained in:
parent
c30784394f
commit
f95f488a0b
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
class RemoveUserFirsts < ActiveRecord::Migration
|
||||
def up
|
||||
drop_table :user_firsts
|
||||
drop_table(:user_firsts) if table_exists?(:user_firsts)
|
||||
rescue
|
||||
# continues with other migrations if we can't delete that table
|
||||
nil
|
||||
|
|
Loading…
Reference in a new issue