Sha256: 9df7d1ba08f3535b8ad8ce61c0d3ac0bd8d8adf7244b0e5a8a27c3d8f396b42e

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feather_cms-0.0.1 lib/generators/feather_cms/templates/migration.rb