Created
April 15, 2010 10:41
-
-
Save ku1ik/366962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.8.7-p249 > a = Account.create(:name => "abc") | |
=> #<Account @id=5 @created_at=Thu, 15 Apr 2010 12:40:53 +0200 @updated_at=Thu, 15 Apr 2010 12:40:53 +0200 @name="abc"> | |
ruby-1.8.7-p249 > a.created_at | |
=> Thu, 15 Apr 2010 12:40:53 +0200 | |
ruby-1.8.7-p249 > a.reload | |
=> #<Account @id=5 @created_at=<not loaded> @updated_at=<not loaded> @name=<not loaded>> | |
ruby-1.8.7-p249 > a.created_at | |
=> nil | |
ruby-1.8.7-p249 > a.name = "def" | |
=> "def" | |
ruby-1.8.7-p249 > a.save | |
=> true | |
ruby-1.8.7-p249 > a.reload | |
=> #<Account @id=5 @created_at=<not loaded> @updated_at=<not loaded> @name=<not loaded>> | |
ruby-1.8.7-p249 > a.created_at | |
=> nil | |
ruby-1.8.7-p249 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment