Sha256: 0d2dc305239334691e1116b1288311feb1d5d79d63c18646b362c110f72ae15a

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

class CreateShopperCoupons < ActiveRecord::Migration[5.0]
  def change
    create_table :shopper_coupons do |t|
      t.belongs_to :order, foreign_key: { to_table: :shopper_orders }
      t.string :code, null: false
      t.float :discount, null: false

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 db/migrate/20170220181741_create_shopper_coupons.rb