Sha256: 63fa56bcb2b2898cee5234be13eeb6483172809f1b7dfb2a11590e5d9cf1c205
Contents?: true
Size: 639 Bytes
Versions: 14
Compression:
Stored size: 639 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 :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
14 entries across 14 versions & 1 rubygems