English 中文(简体)
铁路更新2.3.14, 铁路3.1.0, 铁路再补给3.1.0
原标题:Upgrade Rails 2.3.14 to Rails 3.1.0, or re-write app fresh in Rails 3.1.0

我已将我的电灯升级为3.1.0号铁路,虽然我已经解决了许多兼容性问题,但我也注意到,有许多多余的档案、地表以及我不得不重新编码的一些特征。

我很想知道,我是否应当只是从3.1.0新铁路改写我的 app,还是继续在升级后修改和固定? 前者将产生更清洁的用具,但更多的工作,后者将更快,但也需要一些时间清理这些东西。 我的最好办法是什么?

感谢。

问题回答

我所做的事情是建立一个新的空洞铁路3.1。 在我的宝石中,有 b。 然后,我复制我的移民、我的模式和我的光谱测试。 进行我的测试。 试卷通过,解决任何不兼容的问题。 回答会议/路线、控制者、观点等。





相关问题
Remove ActiveRecord in Rails 3

Now that Rails 3 beta is out, I thought I d have a look at rewriting an app I have just started work on in Rails 3 beta, both to get a feel for it and get a bit of a head-start. The app uses MongoDB ...

When will you upgrade your app to Rails 3? [closed]

Now that the Rails 3 beta is here, let s take a little straw poll. Please tell us briefly what your application does and when you will upgrade it to Rails 3. Or, if you re not planning on upgrading ...

Bundler isn t loading gems

I have been having a problem with using Bundler and being able to access my gems without having to require them somewhere, as config.gem used to do that for me (as far as I know). In my Rails 3 app, I ...

bypass attr_accessible/protected in rails

I have a model that, when it instantiates an object, also creates another object with the same user id. class Foo > ActiveRecord::Base after_create: create_bar private def create_bar Bar....

concat two fields activerecord

I m so used to oracle where you can simply concat(field1, , field2) but if I m using activerecord to find the field1 and field2, and I need a space in between, how do I accomplish this? Cheers ...

热门标签