Created
December 15, 2013 06:13
-
-
Save manleyhimself/7969568 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
Student.where(name: "Little Johnny DropTable").first_or_create | |
# => <Student id: 1, first_name: 'Little Johnny DropTable', grade: 2> | |
Student.where(name: "Sally Sue", grade: 5).first_or_create | |
# => <Student id: 2, first_name: 'Sally Sue', grade: 5> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment