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.31 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.30 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.29 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.28 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.27 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.26 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.25 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.24 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.23 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.22 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.21 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.20 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.19 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.18 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.17 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.16 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.15 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.14 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.13 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb
ecom_core-1.2.12 db/migrate/20200307112519_create_ecom_core_custom_payment_details.rb