Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change function def self.table_name to self.table_name
change def self.primary_key to self.primary_key change def self.primary_key to self.primary_key
- Loading branch information
Rajarshi Das
committed
Jul 25, 2013
1 parent
4dd47fb
commit 5a2a703
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class AutoId < ActiveRecord::Base | ||
def self.table_name () "auto_id_tests" end | ||
def self.primary_key () "auto_id" end | ||
self.table_name = "auto_id_tests" | ||
self.primary_key = "auto_id" | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
class Movie < ActiveRecord::Base | ||
def self.primary_key | ||
"movieid" | ||
end | ||
self.primary_key = "movieid" | ||
end |