Module: FixDBSchemaConflicts::SchemaDumper
- Defined in:
- lib/fix_db_schema_conflicts/schema_dumper.rb
Defined Under Namespace
Classes: ConnectionWithSorting
Instance Method Summary
collapse
Instance Method Details
#extensions(*args) ⇒ Object
23
24
25
26
27
|
# File 'lib/fix_db_schema_conflicts/schema_dumper.rb', line 23
def extensions(*args)
with_sorting do
super(*args)
end
end
|
#table(*args) ⇒ Object
29
30
31
32
33
|
# File 'lib/fix_db_schema_conflicts/schema_dumper.rb', line 29
def table(*args)
with_sorting do
super(*args)
end
end
|
#with_sorting ⇒ Object
35
36
37
38
39
40
|
# File 'lib/fix_db_schema_conflicts/schema_dumper.rb', line 35
def with_sorting
old, @connection = @connection, ConnectionWithSorting.new(@connection)
result = yield
@connection = old
result
end
|