最佳答案
我想重命名一个表... (任何表。)
我试过这行代码:
ActiveRecord::ConnectionAdapters::SchemaStatements.rename_table(old_name, new_name)
奇怪的是。我知道我第一次让它工作了,但是现在我得到了这个错误: ActiveRecord: : ConnectionAdapters: : SchemaStatments: Module 的未定义方法‘ rename _ table’
有什么需要我安排的吗?