Class: ActiveRecord::ConnectionAdapters::SchemaCreation
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/schema_creation.rb
Overview
:nodoc:
Direct Known Subclasses
MySQL::SchemaCreation, PostgreSQL::SchemaCreation, ActiveRecord::ConnectionAdapters::SQLite3::SchemaCreation
Instance Method Summary collapse
- #accept(o) ⇒ Object
-
#initialize(conn) ⇒ SchemaCreation
constructor
A new instance of SchemaCreation.
Constructor Details
#initialize(conn) ⇒ SchemaCreation
Returns a new instance of SchemaCreation.
6 7 8 9 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/schema_creation.rb', line 6 def initialize(conn) @conn = conn @cache = {} end |
Instance Method Details
#accept(o) ⇒ Object
11 12 13 14 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/abstract/schema_creation.rb', line 11 def accept(o) m = @cache[o.class] ||= "visit_#{o.class.name.split('::').last}" send m, o end |