Class: Sequent::Migrations::Projectors
- Inherits:
-
Object
- Object
- Sequent::Migrations::Projectors
- Defined in:
- lib/sequent/migrations/projectors.rb
Direct Known Subclasses
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 |
.version ⇒ Object
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 |
.versions ⇒ Object
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 |