You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
382 B
14 lines
382 B
class CreateSubDisciplineContainers < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :sub_discipline_containers do |t|
|
|
t.references :sub_discipline, index: true
|
|
t.integer :container_id
|
|
t.string :container_type
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :sub_discipline_containers, [:container_type, :container_id], name: "index_on_container"
|
|
end
|
|
end
|