Skip to content

Instantly share code, notes, and snippets.

@rhyhann
Created December 11, 2008 11:43
Show Gist options
  • Save rhyhann/34671 to your computer and use it in GitHub Desktop.
Save rhyhann/34671 to your computer and use it in GitHub Desktop.
(hy@sb) irb
irb(main):001:0> require 'blog.rb'
== Performing Up Migration #1: auto_migrate
ALTER TABLE "posts" ADD COLUMN "categories" VARCHAR DEFAULT NULL
-> 0.0030s
ALTER TABLE "posts" ADD COLUMN "tags" VARCHAR DEFAULT NULL
-> 0.0015s
-> 0.0056s
=> true
irb(main):002:0> Post.all
=> []
irb(main):003:0> Post.new
=> #<Post id=nil name=nil content=nil slug=nil>
irb(main):004:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment