Sha256: 6595f7b0a9a767728c9aff0c7c9f4c497c833e07366023bec5a9a0c124bce1fb

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 Bytes

Contents

class Admin::MigrationsController < Admin::BaseController
  skip_before_action :look_for_needed_db_updates

  def show
    @current_version = migrator.current_schema_version
    @needed_migrations = migrator.pending_migrations
  end

  def update
    migrator.migrate
    redirect_to admin_migrations_url
  end

  private

  def migrator
    @migrator ||= Migrator.new
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
publify_core-9.0.0.pre6 app/controllers/admin/migrations_controller.rb
publify_core-9.0.0.pre5 app/controllers/admin/migrations_controller.rb
publify_core-9.0.0.pre4 app/controllers/admin/migrations_controller.rb
publify_core-9.0.0.pre3 app/controllers/admin/migrations_controller.rb