#primary_key_type
[ GitHub ]# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 19
def primary_key_type @association.klass.type_for_attribute(@association.klass.primary_key).type end
123456789_123456789_123456789_123456789_123456789_
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Inherits: | Object |
| Defined in: | activerecord/lib/active_record/fixture_set/table_row.rb |
ReflectionProxy
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 7
def initialize(association) @association = association end
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 11
def join_table @association.join_table end
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 15
def name @association.name end
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 19
def primary_key_type @association.klass.type_for_attribute(@association.klass.primary_key).type end