Class: PgMigrate::Migration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, ordinal, filepath) ⇒ Migration

Returns a new instance of Migration.



5
6
7
8
9
# File 'lib/pg_migrate/migration.rb', line 5

def initialize(name, ordinal, filepath)
  @name = name
  @ordinal = ordinal
  @filepath = filepath
end

Instance Attribute Details

#createdObject

Returns the value of attribute created.



3
4
5
# File 'lib/pg_migrate/migration.rb', line 3

def created
  @created
end

#filepathObject

Returns the value of attribute filepath.



3
4
5
# File 'lib/pg_migrate/migration.rb', line 3

def filepath
  @filepath
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/pg_migrate/migration.rb', line 3

def name
  @name
end

#ordinalObject

Returns the value of attribute ordinal.



3
4
5
# File 'lib/pg_migrate/migration.rb', line 3

def ordinal
  @ordinal
end

#productionObject

Returns the value of attribute production.



3
4
5
# File 'lib/pg_migrate/migration.rb', line 3

def production
  @production
end