diff --git a/lib/rmre/generator.rb b/lib/rmre/generator.rb
index <HASH>..<HASH> 100644
--- a/lib/rmre/generator.rb
+++ b/lib/rmre/generator.rb
@@ -84,7 +84,7 @@ module Rmre
     def constraint_src(table_name, fk={})
       src = nil
       if fk['from_table'] == table_name
-        src = "belongs_to :#{fk['to_table'].downcase}, :class_name => '#{fk['to_table'].tableize.classify}', :foreign_key => :#{fk['from_column']}"
+        src = "belongs_to :#{fk['to_table'].downcase.singularize}, :class_name => '#{fk['to_table'].tableize.classify}', :foreign_key => :#{fk['from_column']}"
       elsif fk['to_table'] == table_name
         src = "has_many :#{fk['from_table'].downcase.pluralize}, :class_name => '#{fk['from_table'].tableize.classify}'"
       end
`belongs_to` method now uses singular name

The `belongs_to` method was singularizing the table-names. So, if I have
a table Users and a table Cars and each user has one car, the auto-generated
code would just use the table name to name the relationship which would look
like:

  @user = User.find(1)
  @car = @user.cars       #=> should't be plural

This was fixed by calling the `singularize` method on the table name when
generating the code.