Change has_and_belongs_to_many relation to has_many :through between garages and properties.
Delete atribute value and rename type to type_of for Property model.