diff --git a/db/migrate/20160130191533_create_topic_relationships.rb b/db/migrate/20160130191533_create_topic_relationships.rb new file mode 100644 index 0000000000000000000000000000000000000000..bd03053afb5a63b9aaa8cea9817ffe547b77c013 --- /dev/null +++ b/db/migrate/20160130191533_create_topic_relationships.rb @@ -0,0 +1,10 @@ +class CreateTopicRelationships < ActiveRecord::Migration + def change + create_table :topic_relationships do |t| + t.references :parent, index: true + t.references :child, index: true + + t.timestamps null: false + end + end +end