obdev/db/migrate/20240131072940_create_servi...

13 lines
325 B
Ruby

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