Sha256: 16d3a38fba199c5668e33049a5c3d64aa828d7442407be748a704a2126dc803b

Contents?: true

Size: 868 Bytes

Versions: 45

Compression:

Stored size: 868 Bytes

Contents

class CreateEcomCoreCustomPaymentDetails < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_custom_payment_details do |t|
      t.string :name, null: false
      t.float :hours, null: false
      t.float :ot_hours, null: false, default: 0
      t.float :base_salary, null: false
      t.float :overtime, null: false
      t.float :gross_salary, null: false
      t.float :tax, null: false, default: 0
      t.float :pension, null: false, default: 0
      t.float :net_salary, null: false
      t.float :net_pay, null: false
      t.float :advance, null: false
      t.float :wage, null: false
      t.string :qualification
      t.references :payment,
                   null: false,
                   index: { name: 'cpd_on_payment_indx' },
                   foreign_key: { to_table: :ecom_core_payments }

      t.timestamps
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ecom_core-1.2.11 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.10 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.9 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.7 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.6 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb