Sha256: 07c757f9d817d81f57b388445f441362ce3011160b1b0764faa1e7d25bd99fd8
Contents?: true
Size: 645 Bytes
Versions: 14
Compression:
Stored size: 645 Bytes
Contents
class CreateEcomCoreAttendanceSheets < ActiveRecord::Migration[6.0] def change create_table :ecom_core_attendance_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: '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
14 entries across 14 versions & 1 rubygems