Sha256: 20ff8ebb365a313e83e8f51b03e0ed1541d112c7221583458ac1c7017e12e48a

Contents?: true

Size: 236 Bytes

Versions: 39

Compression:

Stored size: 236 Bytes

Contents

class CreateComment < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
      t.integer   :user_id
      t.string    :body      
      t.timestamps
    end
  end

  def self.down
    drop_table :comments
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
cantango-0.9.4.7 spec/active_record/migrations/002_create_comment.rb
cantango-0.9.4.6 spec/active_record/migrations/002_create_comment.rb
cantango-0.9.4.5 spec/active_record/migrations/002_create_comment.rb
cantango-0.9.4.3 spec/active_record/migrations/002_create_comment.rb
cantango-0.9.4.2 spec/active_record/migrations/002_create_comment.rb
cantango-0.9.4.1 spec/active_record/migrations/002_create_comment.rb
cantango-0.9.4 spec/active_record/migrations/002_create_comment.rb
cantango-0.9.3.2 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.9.5 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.9.4 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.9.3 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.9.2 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.9.1 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.9 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.8.1 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.8 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.7 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.6.2 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.6.1 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.6 spec/active_record/migrations/002_create_comment.rb