提交 f605825c 编写于 作者: R Rafael Mendonça França

Merge pull request #21149 from brendanwb/table_name_options-for-pr

Better docs for ActiveRecord::Migration#table_name_options
......@@ -716,7 +716,9 @@ def next_migration_number(number)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册