mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
parent
3a5080b469
commit
e8452a55a6
1 changed files with 17 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue