lib/activefacts/rmap/columns.rb in activefacts-rmap-1.7.1 vs lib/activefacts/rmap/columns.rb in activefacts-rmap-1.8.0
- old
+ new
@@ -157,10 +157,10 @@
return ["BIT", params, constraints] if references[-1].is_unary # It's a unary
# Add a role value constraint
# REVISIT: Can add join-role-value-constraints here, if we ever provide a way to define them
if references[-1].to_role && references[-1].to_role.role_value_constraint
- constraints << references[-1].to_role.role_value_constraint
+ constraints << references[-1].to_role.base_role.role_value_constraint
end
vt = references[-1].is_self_value ? references[-1].from : references[-1].to
begin
params[:length] ||= vt.length if vt.length.to_i != 0