1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Rajarshi Das 2013-07-25 16:24:12 +05:30 committed by Arun Agrawal
parent 132190f632
commit 48ee1e793e
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -1,5 +1,3 @@
class Movie < ActiveRecord::Base
def self.primary_key
"movieid"
end
self.primary_key = "movieid"
end