Sha256: 4a4984a6c83eaa2932639f65ebc86fbc07c9caede0f83fabb134882d157fe15c

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

class CreateContents < ActiveRecord::Migration

  def self.up
    create_table :contents do |t|
      t.string   :title
      t.text     :body
      t.string   :tipe
      t.string   :dom_id
      t.integer  :position
      t.boolean  :visible
      t.string   :link
      t.timestamps
    end
  end

  def self.down
    drop_table :contents
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
contentment-0.8.4 lib/generators/contentment/templates/migration.rb
contentment-0.8.3 lib/generators/contentment/templates/migration.rb
contentment-0.7.1 lib/generators/contentment/templates/migration.rb