Sha256: 42bb5531ce7bee1ccc379c9b47203696f793a8062affbc5e023a58da273d517d

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 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 null: true
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103511_create_spree_promotion_categories.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112463_create_spree_promotion_categories.spree.rb