Commit 358ff61c0409356690705d9a4e79acf559d685fe

Authored by Antonio Terceiro
1 parent 99b70ab5

Just run the pending migrations

Instead of complaining about pending migrations, just run them and get
over it.
Showing 1 changed file with 1 additions and 6 deletions   Show diff stats
script/production
@@ -27,12 +27,7 @@ clear_cache() { @@ -27,12 +27,7 @@ clear_cache() {
27 } 27 }
28 28
29 do_start() { 29 do_start() {
30 - if ! rake db:abort_if_pending_migrations; then  
31 - echo "========================================"  
32 - echo "There are pending migrations, please upgrade the database before starting the production server"  
33 - exit 1  
34 - fi  
35 - 30 + rake db:migrate
36 clear_cache 31 clear_cache
37 ./script/ferret_server -e $RAILS_ENV start 32 ./script/ferret_server -e $RAILS_ENV start
38 environments_loop 33 environments_loop