From 2bba65a2c6f5fdf5241b3be73f56a316fa823a61 Mon Sep 17 00:00:00 2001 From: Brendan Buckingham Date: Thu, 6 Aug 2015 13:58:59 -0500 Subject: better docs for ActiveRecord::Migration#table_name_options --- activerecord/lib/active_record/migration.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord') 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 -- cgit v1.2.3