Class: SlashMigrate::MigrationRunner::Migration

Inherits:
Struct
  • Object
show all
Defined in:
app/services/slash_migrate/migration_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#appliedObject

Returns the value of attribute applied

Returns:

  • (Object)

    the current value of applied



12
13
14
# File 'app/services/slash_migrate/migration_runner.rb', line 12

def applied
  @applied
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'app/services/slash_migrate/migration_runner.rb', line 12

def name
  @name
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



12
13
14
# File 'app/services/slash_migrate/migration_runner.rb', line 12

def version
  @version
end

Instance Method Details

#applied?Boolean

Returns:

  • (Boolean)


13
# File 'app/services/slash_migrate/migration_runner.rb', line 13

def applied? = applied

#statusObject



14
# File 'app/services/slash_migrate/migration_runner.rb', line 14

def status = applied ? "up" : "down"