Sha256: 812cc15617639d045560a109e91db12b410e0266c38d2bf4197f6dd928b5d2a1

Contents?: true

Size: 220 Bytes

Versions: 2

Compression:

Stored size: 220 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.integer :author_id
      t.string :text

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
rails-services-0.1.5 test/rails_app_v2/db/migrate/20110128215003_create_posts.rb
rails-services-0.1.5 test/rails_app_v3/db/migrate/20110128215656_create_posts.rb