12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/db_view_cti/schema_dumper.rb', line 12
def tables_with_cti_views(stream)
tables_without_cti_views(stream)
base_classes = []
@connection.tables.sort.each do |table|
next if ignore_table?(table)
begin
klass = DBViewCTI::Names.table_to_class_name(table).constantize
base_classes << klass if klass.respond_to?('cti_base_class?') && klass.cti_base_class?
rescue NameError
end
end
base_classes.each do |klass|
dump_cti_hierarchy(klass, stream)
end
end
|