Sha256: bce7d3b856d26f9896e466a2e3634aff1d820057e643346c2ab3e8e19b5a8a1b

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

class CreatePostCategories < ActiveRecord::Migration
  def self.up
    create_table :post_categories, :force => true do |t|
      t.string :name
      t.string :permalink
      t.timestamps
    end
  end

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