Skip to content

Set up Valkyrie database in a Rails Application

Trey Pendragon edited this page Dec 7, 2018 · 3 revisions

After adding the gem to your Rails application, run the following to install Valkyrie's migrations and migrate them:

bin/rails valkyrie_engine:install:migrations && bin/rails db:migrate

Engines

If you're trying the above with an engine in the dummy app and it can't find the rake task, ensure your library has the following:

require 'valkyrie'

in its main file (usually lib/gemname.rb)