2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class AddMissingIdColumns < ActiveRecord::Migration[4.2]
|
2013-07-12 13:01:37 -04:00
|
|
|
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
|
2015-04-24 13:10:43 -04:00
|
|
|
end
|