Module: Gitlab::Database::SchemaMigrations

Defined in:
lib/gitlab/database/schema_migrations.rb,
lib/gitlab/database/schema_migrations/context.rb,
lib/gitlab/database/schema_migrations/migrations.rb

Defined Under Namespace

Classes: Context, Migrations

Class Method Summary collapse

Class Method Details

.load_all(connection) ⇒ Object


12
13
14
15
16
# File 'lib/gitlab/database/schema_migrations.rb', line 12

def self.load_all(connection)
  context = Gitlab::Database::SchemaMigrations::Context.new(connection)

  Gitlab::Database::SchemaMigrations::Migrations.new(context).load_all
end

.touch_all(connection) ⇒ Object


6
7
8
9
10
# File 'lib/gitlab/database/schema_migrations.rb', line 6

def self.touch_all(connection)
  context = Gitlab::Database::SchemaMigrations::Context.new(connection)

  Gitlab::Database::SchemaMigrations::Migrations.new(context).touch_all
end