obdev/db/migrate/20240203002211_create_emplo...

13 lines
325 B
Ruby

class CreateEmployerRecords < ActiveRecord::Migration[7.1]
def change
create_table :employer_records do |t|
t.references :participant, null: false, foreign_key: true
t.references :employer, null: false, foreign_key: true
t.date :start_date
t.date :end_date
t.timestamps
end
end
end