Module: ActiverecordCoveringIndex::SchemaCreation
- Defined in:
- lib/activerecord-covering-index/schema_creation.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/activerecord-covering-index/schema_creation.rb', line 5 def self.prepended(base) attr_opts = { to: :@conn } attr_opts[:private] = true if ActiveRecord::VERSION::MAJOR >= 6 base.delegate :supports_covering_index?, **attr_opts end |