module Sequel::Plugins::RequireValidSchema::ClassMethods
Private Instance Methods
get_db_schema_array(reload)
click to toggle source
If the schema cannot be determined, the model uses a simple table, require_valid_schema is set, and the database supports schema parsing, raise or warn based on the require_valid_schema setting.
Calls superclass method
# File lib/sequel/plugins/require_valid_schema.rb, line 49 def get_db_schema_array(reload) schema_array = super if !schema_array && simple_table && @require_valid_schema message = "Not able to parse schema for model: #{inspect}, table: #{simple_table}" if @require_valid_schema == :warn warn message else raise Error, message end end schema_array end