Class: PGTrunk::Operations::MaterializedViews::Base Abstract

Inherits:
PGTrunk::Operation show all
Defined in:
lib/pg_trunk/operations/materialized_views/base.rb

Overview

This class is abstract.

Base class for operations with views

Instance Method Summary collapse

Methods included from PGTrunk::Operation::SQLHelpers

#quote

Methods included from PGTrunk::Operation::RubyHelpers

#dump, #to_a, #to_opts, #to_ruby

Methods included from PGTrunk::Operation::Inversion

#invert!, #irreversible!

Methods included from PGTrunk::Operation::Validations

#error_messages

Methods included from PGTrunk::Operation::Attributes

#attributes, #initialize

Instance Method Details

#column(name, **opts) ⇒ Object



17
18
19
# File 'lib/pg_trunk/operations/materialized_views/base.rb', line 17

def column(name, **opts)
  columns << Column.new(name: name, **opts.except(:new_name))
end