Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [andrew ~/padrino] $ padrino console
- => Loading development console (Padrino v.0.10.2)
- /Users/andrew/.rvm/gems/ruby-1.9.2-p290@padrino/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
- INFO - [01/Oct/2011 21:38:11] "(0.000580s) PRAGMA foreign_keys = 1"
- INFO - [01/Oct/2011 21:38:11] "(0.000498s) PRAGMA table_info('accounts')"
- INFO - [01/Oct/2011 21:38:11] "(0.000261s) PRAGMA table_info('posts')"
- => Loading Application Main
- >> account = Account.new
- => #<Account @values={}>
- >> account.username = 'andrew'
- => "andrew"
- >> account.password = 'abc123'
- => "abc123"
- >> account.registered_at = Time.now
- => 2011-10-01 21:38:56 -0400
- >> account.save
- INFO - [01/Oct/2011 21:38:59] "(0.000219s) SELECT sqlite_version() LIMIT 1"
- INFO - [01/Oct/2011 21:38:59] "(0.000124s) BEGIN"
- INFO - [01/Oct/2011 21:38:59] "(0.000538s) INSERT INTO `accounts` (`username`, `password`, `registered_at`) VALUES ('andrew', 'abc123', '21:38:56.194458')"
- INFO - [01/Oct/2011 21:38:59] "(0.003728s) SELECT * FROM `accounts` WHERE (`id` = 1) LIMIT 1"
- INFO - [01/Oct/2011 21:38:59] "(0.002512s) COMMIT"
- => #<Account @values={:id=>1, :username=>"andrew", :password=>"abc123", :registered_at=>2011-10-01 21:38:56 -0400}>
- >> Account.all
- INFO - [01/Oct/2011 21:40:31] "(0.000553s) SELECT * FROM `accounts`"
- => [#<Account @values={:id=>1, :username=>"andrew", :password=>"abc123", :registered_at=>2011-10-01 21:38:56 -0400}>]
Add Comment
Please, Sign In to add comment