Sha256: a359d1b425bf33f54c3ca07a95e274be0a459ac71d5a9caab0c6a95e65107ab7

Contents?: true

Size: 215 Bytes

Versions: 2

Compression:

Stored size: 215 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.references :post, index: true
      t.text :content
      t.string :author

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
power_resource-0.0.3 spec/dummy/db/migrate/20130916180755_create_comments.rb
power_resource-0.0.2 spec/dummy/db/migrate/20130916180755_create_comments.rb