[deploy] Fix app_initializer:setup for Rails 6 (#8269)
This commit is contained in:
parent
8e1634dd76
commit
ca71e4c237
2 changed files with 6 additions and 6 deletions
10
db/schema.rb
10
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue