Class: Monark::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/monark/schema.rb

Overview

The Monark schema. Creates and updates the schema in an SQL database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSchema

Returns a new instance of Schema.



9
10
11
# File 'lib/monark/schema.rb', line 9

def initialize
  load_info
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



6
7
8
# File 'lib/monark/schema.rb', line 6

def context
  @context
end

#next_migrationObject

Returns the value of attribute next_migration.



7
8
9
# File 'lib/monark/schema.rb', line 7

def next_migration
  @next_migration
end

#versionObject (readonly)

Returns the value of attribute version.



7
8
9
# File 'lib/monark/schema.rb', line 7

def version
  @version
end