Sha256: 334262fdd2a299d65d060ac37bccdad5400142fc194c432bd35f946fe83ee622

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
      t.integer :post_id
      t.text :content
      t.string :user_name

      t.timestamps
    end
  end

  def self.down
    drop_table :comments
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sunrise-scaffold-0.2.2 test/dummy/db/migrate/20110722085934_create_comments.rb
sunrise-scaffold-0.2.1 test/dummy/db/migrate/20110722085934_create_comments.rb
sunrise-scaffold-0.2.0 test/dummy/db/migrate/20110722085934_create_comments.rb