Sha256: 789028bcabaaf5d2edee64199726d0feed43a5966f10f7f55e9808a4f3ec9c69

Contents?: true

Size: 513 Bytes

Versions: 5

Compression:

Stored size: 513 Bytes

Contents

class CreateMksRateServiceBundles < ActiveRecord::Migration[5.1]
  def change
    create_table :mks_rate_service_bundles do |t|
      t.string :code, unique: true
      t.string :name, null: false
      t.string :description
      t.float :percent_discount, null: false, default: 0
      t.references :service_delivery_unit, index: { name: 'sdu_on_sb_indx' }

      t.timestamps
    end

    add_foreign_key :mks_rate_service_bundles, :mks_rate_service_delivery_units, column: :service_delivery_unit_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mks_rate-1.0.5 db/migrate/20171219134144_create_mks_rate_service_bundles.rb
mks_rate-1.0.4 db/migrate/20171219134144_create_mks_rate_service_bundles.rb
mks_rate-1.0.3 db/migrate/20171219134144_create_mks_rate_service_bundles.rb
mks_rate-1.0.2 db/migrate/20171219134144_create_mks_rate_service_bundles.rb
mks_rate-1.0.1 db/migrate/20171219134144_create_mks_rate_service_bundles.rb