Sha256: af0097dd956cdf690fe87df4017ef89b74cd94a86e40ad53cd06dc10ad0f525f
Contents?: true
Size: 627 Bytes
Versions: 17
Compression:
Stored size: 627 Bytes
Contents
class CreateEcomCoreOvertimeSheets < ActiveRecord::Migration[6.0] def change create_table :ecom_core_overtime_sheets do |t| t.date :date, null: false t.datetime :opened_at, null: false t.datetime :submitted_at t.datetime :approved_at t.string :remark t.string :status, null: false, default: 'Open' t.references :site, null: false, index: { name: 'os_on_site_indx' }, foreign_key: { to_table: :ecom_core_sites } t.timestamps end add_index :ecom_core_overtime_sheets, %i[date site_id], unique: true end end
Version data entries
17 entries across 17 versions & 1 rubygems