2

我有一个 Rails 3.0.4 应用程序,但我的服务器使用 Rails 3.0.6

如何在我的应用程序中更新 Rails?

4

1 回答 1

5

你在使用gemfile吗?

如果是这样,只需更新 gemfile 中的行:

gem 'rails', '3.0.6' 

然后从命令行运行:

bundle update

更新 gem 依赖项

rake db:migrate

如果有任何数据库更改

bundle install

安装宝石。

于 2011-04-14T18:00:12.487 回答