add extra environment 'ci' to do ci job in travis
fix build_ci script
set the RAILS_ENV to ci
Merge pull request #52 from whywhy36/switch_to_postgres

Must be modified in one elegant way!