Sha256: 9ddc8072ff198a37a41ee7954ed4690145b839a4baad85823aed29b753835b51

Contents?: true

Size: 494 Bytes

Versions: 15

Compression:

Stored size: 494 Bytes

Contents

require 'rails'

module CanvasSync
  class Engine < ::Rails::Engine
    isolate_namespace CanvasSync

    initializer :append_migrations do |app|
      config.paths["db/migrate"].expanded.each do |expanded_path|
        app.config.paths["db/migrate"] << expanded_path
      end
      # Apartment will modify this, but it doesn't fully support engine migrations, so we'll reset it here
      ActiveRecord::Migrator.migrations_paths = Rails.application.paths['db/migrate'].to_a
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
canvas_sync-0.3.12 lib/canvas_sync/engine.rb
canvas_sync-0.3.11 lib/canvas_sync/engine.rb
canvas_sync-0.3.10 lib/canvas_sync/engine.rb
canvas_sync-0.3.9 lib/canvas_sync/engine.rb
canvas_sync-0.3.8 lib/canvas_sync/engine.rb
canvas_sync-0.3.7 lib/canvas_sync/engine.rb
canvas_sync-0.3.6 lib/canvas_sync/engine.rb
canvas_sync-0.3.5 lib/canvas_sync/engine.rb
canvas_sync-0.3.3 lib/canvas_sync/engine.rb
canvas_sync-0.3.2 lib/canvas_sync/engine.rb
canvas_sync-0.3.1 lib/canvas_sync/engine.rb
canvas_sync-0.3.0 lib/canvas_sync/engine.rb
canvas_sync-0.2.4 lib/canvas_sync/engine.rb
canvas_sync-0.2.3 lib/canvas_sync/engine.rb
canvas_sync-0.2.2 lib/canvas_sync/engine.rb