mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Add primary key id
to category_featured_topics
and topic_users
This commit is contained in:
parent
6122d31711
commit
6dc9d3c411
1 changed files with 11 additions and 0 deletions
11
db/migrate/20130712163509_add_missing_id_columns.rb
Normal file
11
db/migrate/20130712163509_add_missing_id_columns.rb
Normal 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
|
Loading…
Reference in a new issue