DBを作成

PostgreSQLを使ったRoRをGitHubからJenkinsを通してHerokuまで - kanlog
http://kanpe777.github.io/blog/2014/01/31/play-ror-and-jenkins-on-centos/

vim Gemfile
Before
After
gem 'therubyracer', :platforms => :ruby

$ bundle install

$ createuser mahjong -s
$ createdb mahjong my_majong_development -O mahjong

$ rails g scaffold yaku name:string han:integer fu:integer

$ rake db:migrate
$ rake db:test:clone