标签: ruby-on-rails activerecord
我尝试在inflections.rb中使用此方法:
ActiveRecord::Migration.table_name_options ( {table_name_prefix: 'tg_', table_name_suffix: ''})
或
ActiveRecord::Migration.table_name_prefix = 'tg_'
但它不起作用。