Module: ActiveRecord::ModelSchema::ClassMethods

Defined in:
lib/active_record/connection_adapters/clickhouse_adapter.rb

Instance Method Summary collapse

Instance Method Details

#_delete_record(constraints) ⇒ Object

Raises:

  • (ActiveRecord::ActiveRecordError)


60
61
62
63
# File 'lib/active_record/connection_adapters/clickhouse_adapter.rb', line 60

def _delete_record(constraints)
  raise ActiveRecord::ActiveRecordError.new('Deleting a row is not possible without a primary key') unless self.primary_key
  super
end

#is_viewObject



52
53
54
# File 'lib/active_record/connection_adapters/clickhouse_adapter.rb', line 52

def is_view
  @is_view || false
end

#is_view=(value) ⇒ Object

Parameters:

  • value (Boolean)


56
57
58
# File 'lib/active_record/connection_adapters/clickhouse_adapter.rb', line 56

def is_view=(value)
  @is_view = value
end