Enable Rails/ReversibleMigration
cop (#33264)
This commit is contained in:
parent
315c170910
commit
43702b95a2
4 changed files with 16 additions and 7 deletions
|
@ -1,7 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RemoveDevices < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
def up
|
||||
drop_table :devices if table_exists?(:devices)
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue