Module Sequel::Plugins::PgRow::ClassMethods
In: lib/sequel/plugins/pg_row.rb

Methods

Public Instance methods

Register the model‘s row type with the database.

[Source]

     # File lib/sequel/plugins/pg_row.rb, line 102
102:         def register_row_type
103:           table = dataset.first_source_table
104:           db.register_row_type(table, :converter=>self, :typecaster=>method(:new))
105:           db.instance_variable_get(:@schema_type_classes)["pg_row_#{table}""pg_row_#{table}"] = self
106:         end

[Validate]