diff --git a/db/schema.rb b/db/schema.rb index c182c56b6..8673b193f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -2,11 +2,11 @@ # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # -# Note that this schema.rb definition is the authoritative source for your -# database schema. If you need to create the application database on another -# system, you should be using db:schema:load, not running all the migrations -# from scratch. The latter is a flawed and unsustainable approach (the more migrations -# you'll amass, the slower it'll run and the greater likelihood for issues). +# This file is the source Rails uses to define your schema when running `rails +# db:schema:load`. When creating a new database, `rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. # # It's strongly recommended that you check this file into your version control system. diff --git a/lib/tasks/app_initializer.rake b/lib/tasks/app_initializer.rake index cebf4f1cd..5ae605a5a 100644 --- a/lib/tasks/app_initializer.rake +++ b/lib/tasks/app_initializer.rake @@ -5,7 +5,7 @@ namespace :app_initializer do Rake::Task["search:setup"].execute puts "\n== Preparing database ==" - system!('bin/rails db:prepare') + system('bin/rails db:prepare') puts "\n== Updating Data ==" Rake::Task["data_updates:enqueue_data_update_worker"].execute