[from now] 2014/11/18 14:28:08
[from now] 2014/11/18 14:28:08

diff --git a/wercker.yml b/wercker.yml
index ec336fb..2b976ff 100644
--- a/wercker.yml
+++ b/wercker.yml
@@ -3,8 +3,8 @@ box: wercker/rvm
 # See the Rails section on the wercker devcenter:
 # http://devcenter.wercker.com/articles/languages/ruby/settingup-rails4.html
 # You will want to define your database as follows:
-# services:
-#   - wercker/postgresql
+services:
+   - wercker/postgresql
 # See more about services on our devcenter:
 # http://devcenter.wercker.com/articles/services/
 build:
@@ -17,7 +17,8 @@ build:
         - bundle-install

         # A step that prepares the database.yml using the database in services
-        # - rails-database-yml
+        - rails-database-yml:
+            service: postgresql

         # A custom script step, name value is used in the UI
         # and the code value contains the command that get executed
@@ -29,6 +30,13 @@ build:
                 echo -p "gem list: $(gem list)"

         # Add more steps here:
-        # - script:
+        #- script:
         #        name: rspec
         #        code: bundle exec rspec
+deploy:
+    steps:
+        - heroku-deploy:
+            install-toolbelt: true
+        - script:
+            name: Database migration
+            code: heroku run rake db:migrate --app $APP_NAME

shin-szk-engineering/mensagg,shin-szk-engineering/mensagg