1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Compare commits

...

2 commits

Author SHA1 Message Date
Matt Jankowski
2aa6da3c4f
Merge 20c599fb69 into 549ab089ee 2024-07-31 11:06:50 +00:00
Matt Jankowski
20c599fb69 Fix Rails/ReversibleMigration cop for drop_table 2024-07-18 13:22:14 -04:00

View file

@ -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