Method: ActiveRecord::Migration#table_name_options

Defined in:
activerecord/lib/active_record/migration.rb

#table_name_options(config = ActiveRecord::Base) ⇒ Object

Builds a hash for use in ActiveRecord::Migration#proper_table_name using the Active Record object’s table_name prefix and suffix



1141
1142
1143
1144
1145
1146
# File 'activerecord/lib/active_record/migration.rb', line 1141

def table_name_options(config = ActiveRecord::Base) # :nodoc:
  {
    table_name_prefix: config.table_name_prefix,
    table_name_suffix: config.table_name_suffix
  }
end