add tmp folder to repo

Only folder added, not the content. Test depends on it.
update ruby version to 2.1.2
update materialized view due to pg_dump limitation

Due to bug related to selecting a primary in views

More information at http://goo.gl/a4xExi