Module: RepositoryStorageMovable

Extended by:
ActiveSupport::Concern
Includes:
AfterCommitQueue
Included in:
Projects::RepositoryStorageMove, Snippets::RepositoryStorageMove
Defined in:
app/models/concerns/repository_storage_movable.rb

Instance Method Summary collapse

Methods included from AfterCommitQueue

#run_after_commit, #run_after_commit_or_now

Instance Method Details

#add_error(message) ⇒ Object



108
109
110
# File 'app/models/concerns/repository_storage_movable.rb', line 108

def add_error(message)
  errors.add(error_key, message)
end

#schedule_repository_storage_update_workerObject

Raises:

  • (NotImplementedError)


104
105
106
# File 'app/models/concerns/repository_storage_movable.rb', line 104

def schedule_repository_storage_update_worker
  raise NotImplementedError
end

#update_repository_storage(new_storage) ⇒ Object

Projects, snippets, and group wikis has different db structure. In projects, we need to update some columns in this step, but we don’t with the other resources.

Therefore, we create this No-op method for snippets and wikis and let project overwrite it in their implementation.



100
101
102
# File 'app/models/concerns/repository_storage_movable.rb', line 100

def update_repository_storage(new_storage)
  # No-op
end