Sha256: ea236fc884a064eb988621436dfa9b124cdf7ae00844f3d1ce03c5c27bacb408

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
  def self.up
    create_table :<%= table_name %> do |t|
      t.integer  :parent_id
      t.string   :permalink
      t.integer  :position
      t.string   :title
      t.string   :content
      t.boolean  :is_page
      
      t.timestamps
    end
  end

  def self.down
    drop_table :<%= table_name %>
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tiny_cms-0.2.1 generators/tiny_cms/templates/migration.rb
tiny_cms-0.2.0 generators/tiny_cms/templates/migration.rb
tiny_cms-0.1.1 generators/tiny_cms/templates/migration.rb
tiny_cms-0.1.0 generators/tiny_cms/templates/migration.rb