Sha256: 54e18a8e0052cbb5787f8696c193f2fa32157d072503cf78dffab04de541a68f

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

class CreatePostCategoriesPosts < ActiveRecord::Migration
  def self.up
    create_table :post_categories_posts, :id => false, :force => true do |t|
      t.integer :post_id
      t.integer :post_category_id
    end
  end

  def self.down
    drop_table :post_categories_posts
  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_categories_posts.rb
spree_essential_blog-0.1.0.rc1 lib/generators/templates/db/migrate/create_post_categories_posts.rb