Sha256: 3f4907098d898a0eced5fcdf68beccd9740a9548e57b9a4db20c9427d9cccf77

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

class Admin::MigrationsController < Admin::BaseController
  cache_sweeper :blog_sweeper
  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

2 entries across 2 versions & 1 rubygems

Version Path
publify_core-9.0.0.pre2 app/controllers/admin/migrations_controller.rb
publify_core-9.0.0.pre1 app/controllers/admin/migrations_controller.rb