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.
15 lines
474 B
15 lines
474 B
class CreateDoctrineJurisprudences < ActiveRecord::Migration[6.1] |
|
def change |
|
create_table :doctrine_jurisprudences do |t| |
|
t.references :doctrine, null: false |
|
t.references :jurisprudence, null: false |
|
t.integer :rank, null: false, default: 1 |
|
|
|
t.timestamps |
|
end |
|
|
|
add_index :doctrine_jurisprudences, %i[doctrine_id jurisprudence_id], |
|
name: "index_doctrine_jurisprudences_uniqueness", |
|
unique: true |
|
end |
|
end
|
|
|