diff options
Diffstat (limited to 'dia2pg.rb')
-rwxr-xr-x | dia2pg.rb | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -190,7 +190,9 @@ class Attribute end # def real_name - if foreign? and not no_rename? + if no_rename? + @name + elsif foreign? rl = RELATIONS.find { |r| r.tbl_to==@tbl and r.attr_to.name==@name } if rl.nil? $stderr << "MISSING RELATION FOR FOREIGN KEY table:#{@tbl.name} attribute:#{@name}\n" |