Sha256: e338d7b420587db3d97bc6fff8009996016bbe185a5458356836df79428f20c6

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

class CreateContentCategories < ActiveRecord::Migration
  def self.up
    create_table :content_categories do |t|
      t.string :name, :null => false
      t.boolean :show_image
      t.boolean :paginated, :default => true

      t.timestamps
    end

    add_column :content_parts, :category_id, :integer
  end

  def self.down
    remove_column :content_parts, :category_id

    drop_table :content_categories
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree-cms-0.2.1 db/migrate/0002_create_content_categories.rb
spree-cms-0.2.0 db/migrate/0002_create_content_categories.rb
spree-cms-0.1.0 db/migrate/0002_create_content_categories.rb