LoginSignup
0
0

More than 1 year has passed since last update.

Mysql2::Error ~~ DB名.action_text_rich_text' doesn't exists

Posted at

事象

  • Rails6の機能、action_textをdockerで実装しようとして出たエラー

結論

  • nodeのバージョンを新しくしたらエラー解決

過程

  • $ rails action_text:installすると、run ~~ で止まる。

image.png

  • 本来はこの後にapplication.jstrixをrequireする、などを書き込んで欲しい

問題の切り分け

  • dockerを使わないで、localでやるとうまくいく。
  • そのうまくいったlocalで$ node -vすると14代だった
  • dockerにnodeをver指定する記述を足す
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - && \
        apt-get install -y nodejs npm && npm install n -g && n 14.17.4

その他

  • railsguideにaction_textを使うならnode バージョンは~~以上、とは書いてない気がするんだが、、
  • まだましか。laravelのreadoubleなんてもっとひどいもんな。
0
0
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
0
0