Skip to content

Commit

Permalink
Create database during rake sandbox (when applicable)
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed Feb 19, 2012
1 parent 737fc7f commit 9e77d32
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/lib/generators/spree/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ def install_migrations
end
end

def create_database
say_status :creating, "database"
silence_stream(STDOUT) do
silence_stream(STDERR) do
silence_warnings { rake 'db:create' }
end
end
end

def run_migrations
if @run_migrations
say_status :running, "migrations"
Expand Down

0 comments on commit 9e77d32

Please sign in to comment.