changed dependency from activerecord 4 to ~> 4.0.0