Sha256: c5a207bdc6e0ebf1c12a3d9c9ac4eb9eaf7e8a1809a8625dc55b6db1e9342c34

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

# This migration comes from spree (originally 20150113002122)
class CreateSpreePromotionCodes < ActiveRecord::Migration
  def change
    create_table :spree_promotion_codes do |t|
      t.references :promotion, index: true, null: false
      t.string :value, null: false
      t.integer :usage_limit

      t.timestamps null: true
    end

    add_index :spree_promotion_codes, :value, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103547_create_spree_promotion_codes.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112499_create_spree_promotion_codes.spree.rb