Sha256: aa27afb44b6833848dcadb289d27362c2ecde7f2ff9c3ae8ea76d6c0364613eb

Contents?: true

Size: 240 Bytes

Versions: 3

Compression:

Stored size: 240 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.string :title
      t.string :body
      t.integer :user_id

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
transactionata-0.3.0 test/rails2/db/migrate/20110214150055_create_posts.rb
transactionata-0.2.0 test/rails2/db/migrate/20110214150055_create_posts.rb
transactionata-0.1.0 test/rails2/db/migrate/20110214150055_create_posts.rb