def create_belongs_to(model_name, configuration = {},attributes = {})
      config = @config[:"belongs_to"][model_name.to_sym]
      
      type = get_type(config[:foreign_key] || :"#{model_name}_id")
      type_class = get_type_class type
      return if type.nil?
      # We create the model and save it
      new_model = eval "#{config[:class_name]}.new(#{attributes})"
      return false if not new_model.save

      # Set the model id in the correct column
      assign(config[:foreign_key] || :"#{model_name.to_s.underscore}_id", new_model.id)
    end
def create_belongs_to(model_name, configuration = {},attributes = {})
      config = @config[:"belongs_to"][model_name.to_sym]
      
      type = get_type(config[:foreign_key] || :"#{model_name}_id")
      type_class = get_type_class type
      return if type.nil?
      # We create the model and save it
      new_model = eval "#{config[:class_name]}.new(#{attributes})"
      return false if not new_model.save

      # Set the model id in the correct column
      assign(config[:foreign_key] || :"#{model_name.to_s.underscore}_id", new_model.id)
    end
Create a belongs_to relationship
 Executed when the user use, for example, Post.create_comment :title => "Bla bla", :comment => "Comment ..."
 * _model_name_: Model class name
 * _configuration_: Relationship configuration like __;foreign_key__
 * _attributes_: Attributes to set to the new model