Class: Dart::Reflection::Sequel::NamingConventions

Inherits:
NamingConventions::AbstractBase show all
Includes:
Sequel::Inflections
Defined in:
lib/dart/reflection/sequel/naming_conventions.rb

Instance Method Summary collapse

Methods inherited from NamingConventions::AbstractBase

#conventional_join_table_names, #long_association_name, #parent_table_for, #plural_association_name, #singular_association_name

Instance Method Details

#conventional_primary_keyObject



10
11
12
# File 'lib/dart/reflection/sequel/naming_conventions.rb', line 10

def conventional_primary_key
  'id'
end

#foreign_key_regexObject



14
15
16
# File 'lib/dart/reflection/sequel/naming_conventions.rb', line 14

def foreign_key_regex
  /_id$/
end