13 lines
301 B
Ruby
13 lines
301 B
Ruby
class CreateTeachers < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :teachers do |t|
|
|
t.string :name , null: false
|
|
t.text :bio , null: false
|
|
t.string :picture , null: false
|
|
t.references :member, null: false, foreign_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|