LoginSignup
3
2

More than 5 years have passed since last update.

Rails 5.1系からRails 5.2系へのアップデート

Last updated at Posted at 2018-05-14

基本的には公式に書いてある手順にのっとる。テストをしっかり書いてあれば割とすんなりといく。

事前にgemをアップデートしておく

Rubocopアップデートに伴って少し直したくらい。

config/credentials.yml.encへの移行

Rails 5.1にあげた時にやらなかったからそのツケが…w

この変更に伴い、 config/master.key をデプロイ対象にした。
Circle CIとかは ENV['RAILS_MASTER_KEY'] に設定。

rspec流したら鬼のようなDEPRECATION WARNING

の設定を入れて一個ずつ直した。

2種類だけだった。

Arel.sqlでくくる

order('hoge desc') みたいに書いてた所を order(Arel.sql('hoge desc')) にした

DEPRECATION WARNING: The success?…

be_successbe_successful にかえる

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2