Merge pull request #1186 from stephankaag/add_primary_keys

Add primary key `id` to `category_featured_topics` and `topic_users`
This commit is contained in:
Sam 2013-07-15 03:12:07 -07:00
commit 6f6ad9d076
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
class AddMissingIdColumns < ActiveRecord::Migration
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