我有一个新的Rails4应用程序,我在STI配置中创建了一些模型。主要模型称为Order,它继承自ActiveRecord::Base。这是它的样子:classOrder{where(type:'remote')}scope:locals,->{where(type:'local')}end另外两个模型位于models/orders的文件夹中,它们分别称为Remote和Local,它们都继承自顺序订单迁移文件如下所示:defchangecreate_table:ordersdo|t|t.string:source_url,null:falset.string:final_url,nul