mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 23:12:45 +08:00
parent
3a5080b469
commit
e8452a55a6
17
db/post_migrate/20201110110952_drop_github_user_infos.rb
Normal file
17
db/post_migrate/20201110110952_drop_github_user_infos.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'migration/table_dropper'
|
||||
|
||||
class DropGithubUserInfos < ActiveRecord::Migration[6.0]
|
||||
DROPPED_TABLES ||= %i{ github_user_infos }
|
||||
|
||||
def up
|
||||
DROPPED_TABLES.each do |table|
|
||||
Migration::TableDropper.execute_drop(table)
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user