13 lines
240 B
13 lines
240 B
5 years ago
|
class CreateLaboratories < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
create_table :laboratories do |t|
|
||
|
t.references :school
|
||
|
t.string :identifier
|
||
|
|
||
|
t.timestamps
|
||
|
|
||
|
t.index :identifier, unique: true
|
||
|
end
|
||
|
end
|
||
|
end
|