diff options
author | Brendan Buckingham <brendan.buckingham@gmail.com> | 2015-08-06 13:58:59 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-06 16:53:25 -0300 |
commit | 2bba65a2c6f5fdf5241b3be73f56a316fa823a61 (patch) | |
tree | ea3b7f6b2c8d64b3075c0b2f7e3b5d8ac119f47c /activerecord | |
parent | 777aeb6418cdc5c59920b0e90a413e5ebb599d37 (diff) | |
download | rails-2bba65a2c6f5fdf5241b3be73f56a316fa823a61.tar.gz rails-2bba65a2c6f5fdf5241b3be73f56a316fa823a61.tar.bz2 rails-2bba65a2c6f5fdf5241b3be73f56a316fa823a61.zip |
better docs for ActiveRecord::Migration#table_name_options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 4cfda302ea..b7b508d853 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -716,7 +716,9 @@ module ActiveRecord end end - def table_name_options(config = ActiveRecord::Base) + # Builds a hash for use in ActiveRecord::Migration#proper_table_name using + # the Active Record object's table_name prefix and suffix + def table_name_options(config = ActiveRecord::Base) #:nodoc: { table_name_prefix: config.table_name_prefix, table_name_suffix: config.table_name_suffix |