Skip to content

Commit

Permalink
Merge pull request #17 from samvera-labs/specific-app-root
Browse files Browse the repository at this point in the history
update engine.rb to specify engine root for migrations
  • Loading branch information
kirkkwang authored May 15, 2024
2 parents aee1a57 + 0cfca4b commit 1962a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hyku_knapsack/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.load_translations!
# only add the migrations if they are not already copied
# via the rake task. Allows gem to work both with the install:migrations
# and without it.
if !app.root.to_s.match(root.to_s) &&
if !app.root.to_s.match(HykuKnapsack::Engine.root.to_s) &&
app.root.join('db/migrate').children.none? { |path| path.fnmatch?("*.hyku_knapsack.rb") }
config.paths["db/migrate"].expanded.each do |expanded_path|
app.config.paths["db/migrate"] << expanded_path
Expand Down

0 comments on commit 1962a47

Please sign in to comment.