mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 15:43:42 +08:00
15 lines
327 B
Ruby
15 lines
327 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RemoveUserFirsts < ActiveRecord::Migration[4.2]
|
|
def up
|
|
drop_table(:user_firsts) if table_exists?(:user_firsts)
|
|
rescue StandardError
|
|
# continues with other migrations if we can't delete that table
|
|
nil
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|