rails 5.0 Posted on 2017-01-05 15:31 1.要想将现有的app rails版本升到5.0,要现将版本升到4.2,确认没问题之后在往上升。从4.2到5.0的时候要在app/models下新增一个文件 application_record.rb app/models/application_record.rb123Class ApplicationRecord < ActiveRecord: :Baseself.abstract_class = trueend 2.APIrails new my_api –api