Class: FixDBSchemaConflicts::SchemaDumper::ConnectionWithSorting
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- FixDBSchemaConflicts::SchemaDumper::ConnectionWithSorting
- Defined in:
- lib/fix_db_schema_conflicts/schema_dumper.rb
Instance Method Summary collapse
- #columns(table) ⇒ Object
- #extensions ⇒ Object
- #foreign_keys(table) ⇒ Object
- #indexes(table) ⇒ Object
Instance Method Details
#columns(table) ⇒ Object
10 11 12 |
# File 'lib/fix_db_schema_conflicts/schema_dumper.rb', line 10 def columns(table) __getobj__.columns(table).sort_by(&:name) end |
#extensions ⇒ Object
6 7 8 |
# File 'lib/fix_db_schema_conflicts/schema_dumper.rb', line 6 def extensions __getobj__.extensions.sort end |
#foreign_keys(table) ⇒ Object
18 19 20 |
# File 'lib/fix_db_schema_conflicts/schema_dumper.rb', line 18 def foreign_keys(table) __getobj__.indexes(table).sort_by(&:name) end |
#indexes(table) ⇒ Object
14 15 16 |
# File 'lib/fix_db_schema_conflicts/schema_dumper.rb', line 14 def indexes(table) __getobj__.indexes(table).sort_by(&:name) end |