Sha256: b9d9f9f839b3d4db55e61cdafeeb2e0bd48f13f489d82e8132b922617f858c1e

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

class CreateMksRateChargeableServiceDiscounts < ActiveRecord::Migration[5.1]
  def change
    create_table :mks_rate_chargeable_service_discounts do |t|
      t.string :unit_variable, null: false
      t.float :from, null: false
      t.float :to, null: false
      t.float :value, null: false
      t.integer :chargeable_service_id

      t.timestamps
    end

    add_foreign_key :mks_rate_chargeable_service_discounts,
                    :mks_rate_chargeable_services, column: :chargeable_service_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mks_rate-1.0.5 db/migrate/20171215092528_create_mks_rate_chargeable_service_discounts.rb
mks_rate-1.0.4 db/migrate/20171215092528_create_mks_rate_chargeable_service_discounts.rb
mks_rate-1.0.3 db/migrate/20171215092528_create_mks_rate_chargeable_service_discounts.rb
mks_rate-1.0.2 db/migrate/20171215092528_create_mks_rate_chargeable_service_discounts.rb
mks_rate-1.0.1 db/migrate/20171215092528_create_mks_rate_chargeable_service_discounts.rb