Sha256: 3196b77c9e8a72c3da75517fa03ff3f0e594f39a408ddc8670122157f63c0bea

Contents?: true

Size: 513 Bytes

Versions: 7

Compression:

Stored size: 513 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.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

7 entries across 7 versions & 1 rubygems

Version Path
contentment-0.5.1 lib/generators/contentment/templates/migration.rb
contentment-0.5.0 lib/generators/contentment/templates/migration.rb
contentment-0.4.0 lib/generators/contentment/templates/migration.rb
contentment-0.3.2 lib/generators/contentment/templates/migration.rb
contentment-0.3.1 lib/generators/contentment/templates/migration.rb
contentment-0.3.0 lib/generators/contentment/templates/migration.rb
contentment-0.1.0 lib/generators/contentment/templates/migration.rb