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