Sha256: d81c82711a50f9d20a5d5aa32aaabcfc15f8174ba76b15bcb7fb286ebf027707

Contents?: true

Size: 251 Bytes

Versions: 1

Compression:

Stored size: 251 Bytes

Contents

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

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
track_changes-0.5.1 test/rails_root/db/migrate/20100115021151_create_posts.rb