3.0: Rails 4.1 inversible associations

See #896