1
0
mirror of https://github.com/mastodon/mastodon synced 2025-01-11 12:23:22 +09:00
mastodon/db/migrate/20170205175257_remove_devices.rb

12 lines
216 B
Ruby
Raw Normal View History

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