Skip to content

Commit

Permalink
Fix mistaken path of execute_generate_model method
Browse files Browse the repository at this point in the history
  • Loading branch information
sanfrecce-osaka committed Apr 25, 2019
1 parent 1f4b8bb commit aea1272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/erd/generator_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
# @return generated migration filename
def execute_generate_model(name, options = nil)
result = execute_generator 'model', name, options
result.flatten.grep(%r(/db/migrate/.*\.rb))
result.flatten.grep(%r(db/migrate/.*\.rb))
end

# runs `rails g migration [name]`
Expand Down

0 comments on commit aea1272

Please sign in to comment.