Sha256: 9114290a6745a8e13c94ed75518d60244e4f402fa630bcfbc0e313b60af89cf1

Contents?: true

Size: 235 Bytes

Versions: 2

Compression:

Stored size: 235 Bytes

Contents

class CreateMicroposts < ActiveRecord::Migration
  def change
    create_table :microposts do |t|
      t.string :content
      t.integer :user_id

      t.timestamps
    end
    add_index :microposts, [:user_id, :created_at]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 db/migrate/20120616215835_create_microposts.rb
guara-0.0.1.rc db/migrate/20120616215835_create_microposts.rb