Class: DbSchema::Migration

Inherits:
Object
  • Object
show all
Defined in:
lib/db_schema/migration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Migration

Returns a new instance of Migration.



7
8
9
10
# File 'lib/db_schema/migration.rb', line 7

def initialize(name)
  @name = name
  @conditions = { apply: [], skip: [] }
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/db_schema/migration.rb', line 5

def body
  @body
end

#conditionsObject (readonly)

Returns the value of attribute conditions.



4
5
6
# File 'lib/db_schema/migration.rb', line 4

def conditions
  @conditions
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/db_schema/migration.rb', line 4

def name
  @name
end