From 528bd0ea55b6984ff4a0bd1cd98aebcb88d926e0 Mon Sep 17 00:00:00 2001 From: nishihata Date: Mon, 25 Jun 2018 17:48:10 +0900 Subject: [PATCH] add rails db:structure:load --- lib/capistrano/tasks/db.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/db.rake b/lib/capistrano/tasks/db.rake index 4e85440..15070d2 100644 --- a/lib/capistrano/tasks/db.rake +++ b/lib/capistrano/tasks/db.rake @@ -18,7 +18,8 @@ namespace :deploy do seed: 'Load the seed data from db/seed.rb', setup: 'Create the database, load the schema, and initialize with the seed data', reset: 'Drop and recreate the database from db/schema.rb and load the seeds', - version: 'Retrieve the current schema version number' + version: 'Retrieve the current schema version number', + "structure:load": 'Load db/structure.sql' }.each do |task_name, task_desc| desc "Run rake db:#{task_name}".ljust(28) + task_desc task task_name => [:set_rails_env, :set_rails_db_options] do