Skip to content

Commit

Permalink
Order migrations by their timestamp so they are imported in the corre…
Browse files Browse the repository at this point in the history
…ct order
  • Loading branch information
prdanelli committed Oct 10, 2017
1 parent 5552f4c commit c908dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/buffalo_pages.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace :buffalo_pages do
task install: :environment do
migrations = Dir["#{BuffaloPages.root}/db/migrate/*"]
migrations = Dir["#{BuffaloPages.root}/db/migrate/*"].sort
target_dir = "#{Rails.root}/db/migrate"

start = DateTime.current
Expand Down

0 comments on commit c908dfd

Please sign in to comment.