2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-13 15:59:12 -04:00
|
|
|
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
|