2012-11-01から1ヶ月間の記事一覧

sql構文実行順序

sql

上から、 FROM WHERE GROUP BY HAVING SELECT UNION INTERSECT ORDER BY LIMIT INTO の順に実行される

limitをチェーンしたときのcountの戻り値に注意

Failures: 1) CampaignsQuestion#answers 最新回答一覧が取得できること Failure/Error: @answers[:latest].size.should eq 15 expected: 15 got: 30 (compared using ==) # ./spec/models/campaigns_question_spec.rb:58:in `block (3 levels) in <top (required)>' describ</top>…

gitではじめにやっておく設定

ユーザーの設定 me-no-MacBook-Pro:me$ git config --global user.name "my_name" me-no-MacBook-Pro:me$ git config --global user.email "my@email.com"gitコマンドを省略したいので、エイリアスの設定 me-no-MacBook-Pro:me$ git git config --global ali…