Sha256: b88346fb7ac2948d7c540a22c2bdcbd90ebfbcbd45a7b26eaba508b4135ff6ee
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
class CreateEcomModelCrewTimes < ActiveRecord::Migration[6.0] def change create_table :ecom_model_crew_times do |t| t.date :date, null: false t.time :checkin_time t.time :checkout_time t.references :crew, index: { name: 'ct_on_crew_indx' } t.string :remark t.boolean :overtime, null: false, default: false t.timestamps end add_foreign_key :ecom_model_crew_times, :ecom_model_crews, column: :crew_id end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecom_model-2.0.4 | db/migrate/20191225211712_create_ecom_model_crew_times.rb |
ecom_model-2.0.3 | db/migrate/20191225211712_create_ecom_model_crew_times.rb |