Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rails db:structure:load #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/capistrano/tasks/db.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down