Sha256: a6d0aded2acec47aad981f7e16ff1f9ec04c1f15e8086deceff3eaf3618260b7
Contents?: true
Size: 601 Bytes
Versions: 12
Compression:
Stored size: 601 Bytes
Contents
class CreateEcomCoreOvertimeSheets < ActiveRecord::Migration[6.0] def change create_table :ecom_core_overtime_sheets do |t| t.date :date, null: false t.time :opened_at, null: false t.time :submitted_at t.string :remark t.string :status, null: false, default: 'Open' t.references :project, null: false, index: { name: 'os_on_project_indx' }, foreign_key: { to_table: :ecom_core_projects } t.timestamps end add_index :ecom_core_overtime_sheets, %i[date project_id], unique: true end end
Version data entries
12 entries across 12 versions & 1 rubygems