Changed style for rails 4 and heroku compatibility

http://stackoverflow.com/questions/17497012/rails-4-heroku-sqlite3-error