Skip to content

Commit

Permalink
Refs #28972 - Add db/migrate directory to engine (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
apuntamb authored Feb 17, 2020
1 parent 3f2a6b1 commit e386c76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/foreman_azure_rm/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class Engine < ::Rails::Engine
end
end

# Add any db migrations
initializer "foreman_azure_rm.load_app_instance_data" do |app|
ForemanAzureRm::Engine.paths['db/migrate'].existent.each do |path|
app.config.paths['db/migrate'] << path
end
end

initializer "foreman_azure_rm.add_rabl_view_path" do
Rabl.configure do |config|
config.view_paths << ForemanAzureRm::Engine.root.join('app', 'views')
Expand Down

0 comments on commit e386c76

Please sign in to comment.