mastodon-glitch/db/migrate/20170205175257_remove_devic...

12 lines
216 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class RemoveDevices < ActiveRecord::Migration[5.0]
def up
2020-06-02 17:24:53 +00:00
drop_table :devices if table_exists?(:devices)
end
def down
raise ActiveRecord::IrreversibleMigration
end
end