Class: Sequent::Migrations::Projectors

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/migrations/projectors.rb

Direct Known Subclasses

Migrations

Class Method Summary collapse

Class Method Details

.projectors_between(old, new) ⇒ Object



12
13
14
# File 'lib/sequent/migrations/projectors.rb', line 12

def self.projectors_between(old, new)
  versions.values_at(*Range.new(old + 1, new).to_a.map(&:to_s)).compact.flatten.uniq
end

.versionObject



8
9
10
# File 'lib/sequent/migrations/projectors.rb', line 8

def self.version
  fail "Define your own Sequent::Migrations::Projectors class that extends this class and implements this method"
end

.versionsObject



4
5
6
# File 'lib/sequent/migrations/projectors.rb', line 4

def self.versions
  fail "Define your own Sequent::Migrations::Projectors class that extends this class and implements this method"
end