Module: Torque::PostgreSQL::Adapter::SchemaOverrides
- Included in:
- Torque::PostgreSQL::Adapter
- Defined in:
- lib/torque/postgresql/adapter/schema_overrides.rb
Instance Method Summary collapse
- #drop_table(*table_names, **options) ⇒ Object
-
#quote_table_name(name) ⇒ Object
This adds better support for handling the quotation of table names.
Instance Method Details
#drop_table(*table_names, **options) ⇒ Object
30 31 32 33 |
# File 'lib/torque/postgresql/adapter/schema_overrides.rb', line 30 def drop_table(*table_names, **) table_names = table_names.map { |name| sanitize_name_with_schema(name, .dup) } super(*table_names, **) end |
#quote_table_name(name) ⇒ Object
This adds better support for handling the quotation of table names
8 9 10 11 12 |
# File 'lib/torque/postgresql/adapter/schema_overrides.rb', line 8 def quote_table_name(name) ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting::QUOTED_TABLE_NAMES.then do |m| m[name] ||= quote_identifier_name(name) end end |