Sha256: e3fe6b094f5b92c7a880f6d769d5decb337e57382f109eaf5a01c5087cce00fa

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
      t.string :title
      t.text :body
      t.string :email
      t.string :author
      t.string :ip
      t.boolean :published
      t.integer :picture_id

      t.timestamps
    end
  end

  def self.down
    drop_table :comments
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pictrails-0.5.0 db/migrate/20080910173454_create_comments.rb