Module: Familia::Migration
- Defined in:
- lib/familia/migration.rb,
lib/familia/migration/base.rb,
lib/familia/migration/model.rb,
lib/familia/migration/errors.rb,
lib/familia/migration/runner.rb,
lib/familia/migration/script.rb,
lib/familia/migration/pipeline.rb,
lib/familia/migration/registry.rb,
lib/familia/migration/rake_tasks.rb
Defined Under Namespace
Modules: Errors Classes: Base, Configuration, Model, Pipeline, RakeTasks, Registry, Runner, Script
Class Method Summary collapse
-
.config ⇒ Object
Configuration.
- .configure {|config| ... } ⇒ Object
-
.migrations ⇒ Object
Registered migration classes (populated by Base.inherited).
- .migrations=(list) ⇒ Object
Class Method Details
.config ⇒ Object
Configuration
26 27 28 |
# File 'lib/familia/migration.rb', line 26 def config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
30 31 32 |
# File 'lib/familia/migration.rb', line 30 def configure yield config if block_given? end |
.migrations ⇒ Object
Registered migration classes (populated by Base.inherited)
17 18 19 |
# File 'lib/familia/migration.rb', line 17 def migrations @migrations ||= [] end |
.migrations=(list) ⇒ Object
21 22 23 |
# File 'lib/familia/migration.rb', line 21 def migrations=(list) @migrations = list end |