Sha256: c42342fabe1af2e25bcf2cd4df573ca582dd668564af31c2a408345e944c4588

Contents?: true

Size: 256 Bytes

Versions: 2

Compression:

Stored size: 256 Bytes

Contents

class CreatePostProducts < ActiveRecord::Migration
  def self.up
    create_table :post_products do |t|
      t.references :post
      t.references :product
      t.integer    :position
    end
  end

  def self.down
    drop_table :post_products
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_essential_blog-0.1.0 lib/generators/templates/db/migrate/create_post_products.rb
spree_essential_blog-0.1.0.rc1 lib/generators/templates/db/migrate/create_post_products.rb