Use `ActiveRecord` instead of `Rails` here.