Sha256: c8909fb08a8744b5d4db90e9170576c30ea161d5e7694ac67d4f5ae95462bba0

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

class CreateFeatherPages < ActiveRecord::Migration
  def change
    create_table :feather_pages do |t|
      t.string :name
      t.string :status, :default => 'draft'
      <% if @storage == 'db' %>
      t.text   :content
      <% end %>
      t.string :layout, :default => 'application'
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
feather_cms-0.0.4 lib/generators/feather_cms/templates/migration.rb
feather_cms-0.0.3 lib/generators/feather_cms/templates/migration.rb
feather_cms-0.0.2 lib/generators/feather_cms/templates/migration.rb