Class: SequelMigrationsToys::Template

Inherits:
Object
  • Object
show all
Includes:
Toys::Template
Defined in:
lib/sequel_migrations_toys/template.rb,
lib/sequel_migrations_toys/template/run.rb,
lib/sequel_migrations_toys/template/list.rb,
lib/sequel_migrations_toys/template/_base.rb,
lib/sequel_migrations_toys/template/check.rb,
lib/sequel_migrations_toys/template/create.rb,
lib/sequel_migrations_toys/template/enable.rb,
lib/sequel_migrations_toys/template/disable.rb,
lib/sequel_migrations_toys/template/rollback.rb,
lib/sequel_migrations_toys/template/reversion.rb,
lib/sequel_migrations_toys/template/create/_base.rb,
lib/sequel_migrations_toys/template/create/regular.rb

Overview

Define toys for Sequel migrations

Defined Under Namespace

Classes: Base, Check, Create, Disable, Enable, List, Reversion, Rollback, Run

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_connection_proc:, db_migrations_dir: 'db/migrations') ⇒ Template

Returns a new instance of Template.



12
13
14
15
# File 'lib/sequel_migrations_toys/template.rb', line 12

def initialize(db_connection_proc:, db_migrations_dir: 'db/migrations')
	@db_migrations_dir = db_migrations_dir
	@db_connection_proc = db_connection_proc
end

Instance Attribute Details

#db_connection_procObject (readonly)

Returns the value of attribute db_connection_proc.



10
11
12
# File 'lib/sequel_migrations_toys/template.rb', line 10

def db_connection_proc
  @db_connection_proc
end

#db_migrations_dirObject (readonly)

Returns the value of attribute db_migrations_dir.



10
11
12
# File 'lib/sequel_migrations_toys/template.rb', line 10

def db_migrations_dir
  @db_migrations_dir
end