mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 10:03:44 +08:00
11 lines
291 B
Ruby
11 lines
291 B
Ruby
|
class CreateSharedDrafts < ActiveRecord::Migration[5.1]
|
||
|
def change
|
||
|
create_table :shared_drafts, id: false do |t|
|
||
|
t.integer :topic_id, null: false
|
||
|
t.integer :category_id, null: false
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :shared_drafts, :topic_id, unique: true
|
||
|
end
|
||
|
end
|