mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 00:33:44 +08:00
12 lines
286 B
Ruby
12 lines
286 B
Ruby
class AddMissingIdColumns < ActiveRecord::Migration[4.2]
|
|
def up
|
|
add_column :category_featured_topics, :id, :primary_key
|
|
add_column :topic_users, :id, :primary_key
|
|
end
|
|
|
|
def down
|
|
remove_column :category_featured_topics, :id
|
|
remove_column :topic_users, :id
|
|
end
|
|
end
|