Skip to content

Instantly share code, notes, and snippets.

@arunthampi
Created February 5, 2010 06:31
Show Gist options
  • Save arunthampi/295572 to your computer and use it in GitHub Desktop.
Save arunthampi/295572 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'friendly'
Friendly.configure :adapter => "mysql",
:host => "localhost",
:user => "root",
:password => "",
:database => "friendly_development"
class BlogPost
include Friendly::Document
attribute :author, String
attribute :title, String
attribute :body, String
end
BlogPost.create_tables!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment