-
Notifications
You must be signed in to change notification settings - Fork 0
Upstream and allow engines #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
264d33f
dd6378c
0962f3a
9aefda5
9d81103
73ce67b
3807de4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,10 +30,12 @@ def migrated | |
|
|
||
| def versions | ||
| @versions ||= begin | ||
| versions = [] | ||
| Dir.foreach(DataMigrate::DataMigrator.full_migrations_path) do |file| | ||
| match_data = DataMigrate::DataMigrator.match(file) | ||
| versions << match_data[1].to_i if match_data | ||
| versions = Set.new | ||
| DataMigrate::DataMigrator.migrations_paths.each do |path| | ||
| Dir.foreach(path) do |file| | ||
| match_data = DataMigrate::DataMigrator.match(file) | ||
| versions << match_data[1].to_i if match_data | ||
| end | ||
| end | ||
| versions | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| end | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this might be changing the list from an expanded path to a relative path. It might be an issue if running the
data_migratecommand from somewhere other thanRails.root? Pretty edge case, would not consider this a blocker for deployment, but maybe something the upstream folks will be concerned about 😸