Created
August 19, 2009 18:45
-
-
Save threetee/170566 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ script/console | |
Loading development environment (Rails 2.3.2) | |
>> User.find(7) | |
=> #<User id: 7, login: "testuser", crypted_password: "...", password_salt: "...", persistence_token: "...", login_count: 9, last_request_at: "2009-08-19 10:45:25", last_login_at: "2009-08-18 00:05:27", current_login_at: "2009-08-19 08:12:31", last_login_ip: "10.140.204.86", current_login_ip: "10.140.204.86", created_at: "2009-03-27 17:57:44", updated_at: "2009-08-19 10:45:25", customer_id: 1, perishable_token: "...", email: "[email protected]"> | |
>> Project.find(1) | |
=> #<Project id: 1, customer_id: 1, name: "Test Project #1", created_at: "2009-08-19 04:04:04", updated_at: "2009-08-19 04:04:04"> | |
>> User.find(7).projects | |
=> [#<Project id: 1, customer_id: 1, name: "Test Project #1", created_at: "2009-04-16 09:15:43", updated_at: "2009-04-16 09:15:48">] | |
>> Project.find(1).users | |
=> [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment