Skip to content

Commit 8cfc3ed

Browse files
authored
Add support for data_migrate gem (#90)
It should seamlessly support the [`data_migrate`](https://github.com/ilyakatz/data-migrate) gem. Closes #89
1 parent 20036db commit 8cfc3ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/annotate_rb/tasks/annotate_models_migrate.rake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
# Migration tasks are tasks that we'll "hook" into
88
migration_tasks = %w[db:migrate db:migrate:up db:migrate:down db:migrate:reset db:migrate:redo db:rollback]
9+
10+
# Support for data_migrate gem (https://github.com/ilyakatz/data-migrate)
11+
migration_tasks_with_data = migration_tasks.map { |task| "#{task}:with_data" }
12+
migration_tasks += migration_tasks_with_data
13+
914
if defined?(Rails::Application) && Rails.version.split(".").first.to_i >= 6
1015
require "active_record"
1116

0 commit comments

Comments
 (0)