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.8.5.1 spec/active_record/migrations/002_create_comment.rb
cantango-0.8.0 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.12 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.11 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.10 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.9 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.8 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.7 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.6 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.5 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.4 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.2 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.1 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.3.0 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.2.9 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.2.8 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.2.7 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.2.5 spec/active_record/migrations/002_create_comment.rb
cancan-permits-0.2.3 spec/active_record/migrations/002_create_comment.rb