Class: GhostSchema::MigrationStore

Inherits:
Object
  • Object
show all
Defined in:
lib/ghost_schema/migration_store.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.after_migrating_migrationsObject

Returns the value of attribute after_migrating_migrations.



6
7
8
# File 'lib/ghost_schema/migration_store.rb', line 6

def after_migrating_migrations
  @after_migrating_migrations
end

.before_migrating_migrationsObject

Returns the value of attribute before_migrating_migrations.



5
6
7
# File 'lib/ghost_schema/migration_store.rb', line 5

def before_migrating_migrations
  @before_migrating_migrations
end

.original_migrations_pathsObject

Returns the value of attribute original_migrations_paths.



4
5
6
# File 'lib/ghost_schema/migration_store.rb', line 4

def original_migrations_paths
  @original_migrations_paths
end

Class Method Details

.copy_filesObject



8
9
10
11
12
# File 'lib/ghost_schema/migration_store.rb', line 8

def copy_files
  copy_target_files.each do |file|
    FileUtils.copy(file, GhostSchema.migrations_path)
  end
end