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:
parent
132190f632
commit
48ee1e793e
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
class Movie < ActiveRecord::Base
|
||||
def self.primary_key
|
||||
"movieid"
|
||||
end
|
||||
self.primary_key = "movieid"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue