Class: PgMigrate::Migration
- Inherits:
-
Object
- Object
- PgMigrate::Migration
- Defined in:
- lib/pg_migrate/migration.rb
Instance Attribute Summary collapse
-
#created ⇒ Object
Returns the value of attribute created.
-
#filepath ⇒ Object
Returns the value of attribute filepath.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ordinal ⇒ Object
Returns the value of attribute ordinal.
-
#production ⇒ Object
Returns the value of attribute production.
Instance Method Summary collapse
-
#initialize(name, ordinal, filepath) ⇒ Migration
constructor
A new instance of Migration.
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
#created ⇒ Object
Returns the value of attribute created.
3 4 5 |
# File 'lib/pg_migrate/migration.rb', line 3 def created @created end |
#filepath ⇒ Object
Returns the value of attribute filepath.
3 4 5 |
# File 'lib/pg_migrate/migration.rb', line 3 def filepath @filepath end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/pg_migrate/migration.rb', line 3 def name @name end |
#ordinal ⇒ Object
Returns the value of attribute ordinal.
3 4 5 |
# File 'lib/pg_migrate/migration.rb', line 3 def ordinal @ordinal end |
#production ⇒ Object
Returns the value of attribute production.
3 4 5 |
# File 'lib/pg_migrate/migration.rb', line 3 def production @production end |