LoginSignup
1
0

More than 3 years have passed since last update.

SQLiteをバージョンアップする

Posted at

vagrantの仮想マシン上でRailsアプリを起動したい。

下コマンドを打つと、
$rails server
$rails db:migrate

これが返ってくる。
rails aborted!
Your version of SQLite (3.6.20) is too old. Active Record supports SQLite >= 3.8.
/home/vagrant/rails_lessons/myapp/bin/rails:9:in <top (required)>'
/home/vagrant/rails_lessons/myapp/bin/spring:15:in
'
bin/rails:3:in load'
bin/rails:3:in
'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

SQLiteのバージョンが古いって返ってくる。3.8以上じゃ無いといけないっぽい。

この記事の通りにコマンドを打つと解決。
https://qiita.com/8zca/items/175efb0612070530d186

ついに通りました。
$rails db:migrate

1
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
1
0