mirror of https://github.com/mastodon/mastodon
Enable `Rails/ReversibleMigration` cop (#33264)
parent
315c170910
commit
43702b95a2
@ -1,7 +1,11 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class RemoveDevices < ActiveRecord::Migration[5.0]
|
class RemoveDevices < ActiveRecord::Migration[5.0]
|
||||||
def change
|
def up
|
||||||
drop_table :devices if table_exists?(:devices)
|
drop_table :devices if table_exists?(:devices)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
raise ActiveRecord::IrreversibleMigration
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue