From 6dc9d3c4118bbb04975021769f04f06a1c42dda5 Mon Sep 17 00:00:00 2001 From: Stephan Kaag Date: Fri, 12 Jul 2013 19:01:37 +0200 Subject: [PATCH] Add primary key `id` to `category_featured_topics` and `topic_users` --- db/migrate/20130712163509_add_missing_id_columns.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20130712163509_add_missing_id_columns.rb diff --git a/db/migrate/20130712163509_add_missing_id_columns.rb b/db/migrate/20130712163509_add_missing_id_columns.rb new file mode 100644 index 00000000000..293a6638b6f --- /dev/null +++ b/db/migrate/20130712163509_add_missing_id_columns.rb @@ -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 \ No newline at end of file