Sha256: c36d835eb0f9817f95df4807a4707621fce827a125f12512d6b2316b68c6c5f9

Contents?: true

Size: 548 Bytes

Versions: 3

Compression:

Stored size: 548 Bytes

Contents

# Everything listed in this migration will be added to a migration file
# inside of your main app.
class CreateContents < ActiveRecord::Migration
  def self.up
    
    # Birds Table
    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 # End of self.up

  def self.down
    drop_table :contents
    # You can drop more tables here
  end # End of self.down
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
contentment-0.7.0 lib/generators/contentment/templates/migration.rb
contentment-0.6.1 lib/generators/contentment/templates/migration.rb
contentment-0.6.0 lib/generators/contentment/templates/migration.rb