Sha256: 8e9e05a4dc6e452c74daf9358e303ee644b90698b415c3c4516749fba8e01d82

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

# This migration comes from spree (originally 20140715182625)
class CreateSpreePromotionCategories < ActiveRecord::Migration
  def change
    create_table :spree_promotion_categories do |t|
      t.string :name
      t.timestamps
    end

    add_column :spree_promotions, :promotion_category_id, :integer
    add_index :spree_promotions, :promotion_category_id
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
spree_order_reporting-0.0.3 spec/dummy/db/migrate/20160708163186_create_spree_promotion_categories.spree.rb
sprangular-0.1.0 spec/dummy/db/migrate/20141203183768_create_spree_promotion_categories.spree.rb
sprangular-0.0.1 spec/dummy/db/migrate/20141203183768_create_spree_promotion_categories.spree.rb