Class: PG::Schema::Migration

Inherits:
Object
  • Object
show all
Defined in:
lib/pg/schema-migration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMigration

Returns a new instance of Migration.



31
32
33
34
# File 'lib/pg/schema-migration.rb', line 31

def initialize
  @up   = []
  @down = []
end

Instance Attribute Details

#downObject

Returns the value of attribute down.



29
30
31
# File 'lib/pg/schema-migration.rb', line 29

def down
  @down
end

#upObject

Returns the value of attribute up.



29
30
31
# File 'lib/pg/schema-migration.rb', line 29

def up
  @up
end