        rescue
          $stderr.puts "Error running migration! Please review database configuration"
        end
-     end
-   end
--
- end
 diff --git a/lib/portus/migrate.rb b/lib/portus/migrate.rb
-index b8af3b6..7a2ff8e 100644
+index b8af3b6af908..7a2ff8ecf258 100644
 --- a/lib/portus/migrate.rb
 +++ b/lib/portus/migrate.rb
 @@ -53,5 +53,40 @@ module Portus

diff --git a/config/environments/production.rb b/config/environments/production.rb
index 2a796a6..8ae1fd4 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,3 +1,6 @@

 Rails.application.configure do
   # Settings specified here will take precedence over those in config/application.rb.
 
@@ -83,6 +86,8 @@ Rails.application.configure do
     config.after_initialize do
       begin
         ActiveRecord::Migrator.migrate(Rails.root.join("db/migrate"), nil)
