Use module method `valid_options` for ActiveRecord 4

In ActiveRecord 3.2, `valid_options` is a class method.
But in ActiveRecord 4.0, it is an instance method.
Setup appraisal
Add task for testing using rake
Merge pull request #1 from tricknotes/ar4

Support ActiveRecord 4