Sha256: b5403d0b7fb2aa0c617c071dcda385dfd601465db39d19b1851a2e08d1a5ff19

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

class TinyCmsCreate<%= 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.timestamps
    end
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tiny_cms-0.2.6 generators/tiny_cms/templates/migration.rb
tiny_cms-0.2.5 generators/tiny_cms/templates/migration.rb
tiny_cms-0.2.4 generators/tiny_cms/templates/migration.rb