Class: RedisRecord::Migration

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Includes:
TTL
Defined in:
lib/redis_record/migration.rb,
lib/redis_record/migration.rb

Overview

typed: strict

Defined Under Namespace

Modules: TTL Classes: Migrator, Version

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TTL

#change_ttl_passive

Constructor Details

#initialize(redis) ⇒ Migration

Returns a new instance of Migration.


18
19
20
# File 'lib/redis_record/migration.rb', line 18

def initialize(redis)
  @redis = redis
end

Instance Attribute Details

#redisObject (readonly)

Returns the value of attribute redis


15
16
17
# File 'lib/redis_record/migration.rb', line 15

def redis
  @redis
end

Instance Method Details

#downObject


26
# File 'lib/redis_record/migration.rb', line 26

def down; end

#upObject


23
# File 'lib/redis_record/migration.rb', line 23

def up; end