Class: ActualDbSchema::FailedMigration

Inherits:
Struct
  • Object
show all
Defined in:
lib/actual_db_schema/failed_migration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exceptionObject

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



4
5
6
# File 'lib/actual_db_schema/failed_migration.rb', line 4

def exception
  @exception
end

#migrationObject

Returns the value of attribute migration

Returns:

  • (Object)

    the current value of migration



4
5
6
# File 'lib/actual_db_schema/failed_migration.rb', line 4

def migration
  @migration
end

Instance Method Details

#filenameObject



5
6
7
# File 'lib/actual_db_schema/failed_migration.rb', line 5

def filename
  migration.filename
end

#short_filenameObject



9
10
11
# File 'lib/actual_db_schema/failed_migration.rb', line 9

def short_filename
  migration.filename.sub(File.join(Rails.root, "/"), "")
end