data_migration_for_rails 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +17 -0
- data/README.md +196 -0
- data/Rakefile +8 -0
- data/app/assets/config/manifest.js +2 -0
- data/app/assets/stylesheets/application.css +15 -0
- data/app/channels/application_cable/channel.rb +6 -0
- data/app/channels/application_cable/connection.rb +6 -0
- data/app/controllers/concerns/data_migration/pundit_authorization.rb +12 -0
- data/app/controllers/data_migration/application_controller.rb +63 -0
- data/app/controllers/data_migration/exports_controller.rb +68 -0
- data/app/controllers/data_migration/imports_controller.rb +78 -0
- data/app/controllers/data_migration/migration_executions_controller.rb +75 -0
- data/app/controllers/data_migration/migration_plans_controller.rb +103 -0
- data/app/controllers/data_migration/migration_steps_controller.rb +164 -0
- data/app/controllers/data_migration/users_controller.rb +71 -0
- data/app/controllers/users/sessions_controller.rb +30 -0
- data/app/helpers/data_migration/application_helper.rb +24 -0
- data/app/jobs/application_job.rb +9 -0
- data/app/jobs/export_job.rb +27 -0
- data/app/jobs/import_job.rb +28 -0
- data/app/mailers/application_mailer.rb +6 -0
- data/app/models/application_record.rb +5 -0
- data/app/models/data_migration_user.rb +43 -0
- data/app/models/migration_execution.rb +93 -0
- data/app/models/migration_plan.rb +23 -0
- data/app/models/migration_record.rb +60 -0
- data/app/models/migration_step.rb +150 -0
- data/app/policies/application_policy.rb +53 -0
- data/app/policies/data_migration/user_policy.rb +27 -0
- data/app/policies/data_migration_user_policy.rb +37 -0
- data/app/policies/migration_execution_policy.rb +33 -0
- data/app/policies/migration_plan_policy.rb +41 -0
- data/app/policies/migration_step_policy.rb +29 -0
- data/app/services/data_migration/model_registry.rb +95 -0
- data/app/services/exports/generator_service.rb +444 -0
- data/app/services/imports/processor_service.rb +457 -0
- data/app/services/migration_plans/export_config_service.rb +41 -0
- data/app/services/migration_plans/import_config_service.rb +158 -0
- data/app/views/data_migration/devise/registrations/edit.html.erb +41 -0
- data/app/views/data_migration/devise/sessions/new.html.erb +35 -0
- data/app/views/data_migration/devise/shared/_error_messages.html.erb +13 -0
- data/app/views/data_migration/devise/shared/_links.html.erb +21 -0
- data/app/views/data_migration/exports/new.html.erb +85 -0
- data/app/views/data_migration/imports/new.html.erb +70 -0
- data/app/views/data_migration/migration_executions/index.html.erb +78 -0
- data/app/views/data_migration/migration_executions/show.html.erb +338 -0
- data/app/views/data_migration/migration_plans/_form.html.erb +28 -0
- data/app/views/data_migration/migration_plans/edit.html.erb +12 -0
- data/app/views/data_migration/migration_plans/index.html.erb +118 -0
- data/app/views/data_migration/migration_plans/new.html.erb +9 -0
- data/app/views/data_migration/migration_plans/show.html.erb +105 -0
- data/app/views/data_migration/migration_steps/_form.html.erb +473 -0
- data/app/views/data_migration/migration_steps/edit.html.erb +12 -0
- data/app/views/data_migration/migration_steps/new.html.erb +9 -0
- data/app/views/data_migration/users/_form.html.erb +49 -0
- data/app/views/data_migration/users/edit.html.erb +2 -0
- data/app/views/data_migration/users/index.html.erb +41 -0
- data/app/views/data_migration/users/new.html.erb +2 -0
- data/app/views/data_migration/users/show.html.erb +133 -0
- data/app/views/layouts/_navbar.html.erb +38 -0
- data/app/views/layouts/data_migration.html.erb +37 -0
- data/app/views/layouts/mailer.html.erb +13 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/app/views/users/registrations/edit.html.erb +41 -0
- data/app/views/users/sessions/new.html.erb +35 -0
- data/app/views/users/shared/_error_messages.html.erb +13 -0
- data/app/views/users/shared/_links.html.erb +21 -0
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/content_security_policy.rb +27 -0
- data/config/initializers/devise.rb +313 -0
- data/config/initializers/filter_parameter_logging.rb +10 -0
- data/config/initializers/inflections.rb +18 -0
- data/config/initializers/permissions_policy.rb +15 -0
- data/config/initializers/warden.rb +14 -0
- data/config/locales/devise.en.yml +65 -0
- data/config/locales/en.yml +31 -0
- data/config/routes.rb +62 -0
- data/db/migrate/20251102121659_create_migration_plans.rb +13 -0
- data/db/migrate/20251102122012_create_migration_steps.rb +24 -0
- data/db/migrate/20251105215702_create_migration_executions.rb +23 -0
- data/db/migrate/20251105215853_create_migration_records.rb +16 -0
- data/db/migrate/20251115154000_remove_unused_attributes.rb +17 -0
- data/db/migrate/20251116120000_add_filter_params_to_migration_executions.rb +7 -0
- data/db/migrate/20251118140000_create_data_migration_users.rb +27 -0
- data/db/migrate/20251118200641_add_user_foreign_keys.rb +15 -0
- data/db/migrate/20251124140000_add_attachment_export_mode_to_migration_steps.rb +9 -0
- data/db/schema.rb +102 -0
- data/db/seeds.rb +19 -0
- data/lib/data_migration/engine.rb +28 -0
- data/lib/data_migration/version.rb +5 -0
- data/lib/data_migration.rb +8 -0
- data/lib/tasks/data_migration_tasks.rake +40 -0
- metadata +279 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class AddUserForeignKeys < ActiveRecord::Migration[7.0]
|
|
4
|
+
def change
|
|
5
|
+
# Add user_id to migration_plans if not exists
|
|
6
|
+
unless column_exists?(:migration_plans, :user_id)
|
|
7
|
+
add_reference :migration_plans, :user, null: false, foreign_key: { to_table: :data_migration_users }
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
# Add user_id to migration_executions if not exists
|
|
11
|
+
return if column_exists?(:migration_executions, :user_id)
|
|
12
|
+
|
|
13
|
+
add_reference :migration_executions, :user, null: false, foreign_key: { to_table: :data_migration_users }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
class AddAttachmentExportModeToMigrationSteps < ActiveRecord::Migration[7.1]
|
|
4
|
+
def change
|
|
5
|
+
# 0 = ignore, 1 = url, 2 = raw_data
|
|
6
|
+
add_column :migration_steps, :attachment_export_mode, :integer, default: 0, null: false
|
|
7
|
+
add_column :migration_steps, :attachment_fields, :text
|
|
8
|
+
end
|
|
9
|
+
end
|
data/db/schema.rb
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated from the current state of the database. Instead
|
|
4
|
+
# of editing this file, please use the migrations feature of Active Record to
|
|
5
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
|
6
|
+
#
|
|
7
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
8
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
9
|
+
# be faster and is potentially less error prone than running all of your
|
|
10
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
11
|
+
# migrations use external dependencies or application code.
|
|
12
|
+
#
|
|
13
|
+
# It's strongly recommended that you check this file into your version control system.
|
|
14
|
+
|
|
15
|
+
ActiveRecord::Schema[7.1].define(version: 20_251_105_222_623) do
|
|
16
|
+
# These are extensions that must be enabled in order to support this database
|
|
17
|
+
enable_extension 'plpgsql'
|
|
18
|
+
|
|
19
|
+
create_table 'migration_executions', force: :cascade do |t|
|
|
20
|
+
t.bigint 'migration_plan_id', null: false
|
|
21
|
+
t.bigint 'user_id', null: false
|
|
22
|
+
t.integer 'execution_type', null: false
|
|
23
|
+
t.integer 'status', default: 0, null: false
|
|
24
|
+
t.datetime 'started_at'
|
|
25
|
+
t.datetime 'completed_at'
|
|
26
|
+
t.string 'file_path'
|
|
27
|
+
t.jsonb 'stats', default: {}
|
|
28
|
+
t.text 'error_log'
|
|
29
|
+
t.datetime 'created_at', null: false
|
|
30
|
+
t.datetime 'updated_at', null: false
|
|
31
|
+
t.index ['execution_type'], name: 'index_migration_executions_on_execution_type'
|
|
32
|
+
t.index ['migration_plan_id'], name: 'index_migration_executions_on_migration_plan_id'
|
|
33
|
+
t.index ['started_at'], name: 'index_migration_executions_on_started_at'
|
|
34
|
+
t.index ['status'], name: 'index_migration_executions_on_status'
|
|
35
|
+
t.index ['user_id'], name: 'index_migration_executions_on_user_id'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
create_table 'migration_plans', force: :cascade do |t|
|
|
39
|
+
t.string 'name', null: false
|
|
40
|
+
t.text 'description'
|
|
41
|
+
t.jsonb 'settings', default: {}
|
|
42
|
+
t.datetime 'created_at', null: false
|
|
43
|
+
t.datetime 'updated_at', null: false
|
|
44
|
+
t.index ['name'], name: 'index_migration_plans_on_name', unique: true
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
create_table 'migration_records', force: :cascade do |t|
|
|
48
|
+
t.bigint 'migration_execution_id', null: false
|
|
49
|
+
t.string 'migrated_model_name'
|
|
50
|
+
t.string 'record_identifier'
|
|
51
|
+
t.integer 'action'
|
|
52
|
+
t.jsonb 'record_changes'
|
|
53
|
+
t.text 'error_message'
|
|
54
|
+
t.datetime 'created_at', null: false
|
|
55
|
+
t.datetime 'updated_at', null: false
|
|
56
|
+
t.index ['migration_execution_id'], name: 'index_migration_records_on_migration_execution_id'
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
create_table 'migration_steps', force: :cascade do |t|
|
|
60
|
+
t.bigint 'migration_plan_id', null: false
|
|
61
|
+
t.string 'model_name'
|
|
62
|
+
t.integer 'sequence'
|
|
63
|
+
t.string 'filter_query'
|
|
64
|
+
t.bigint 'dependee_id'
|
|
65
|
+
t.jsonb 'dependee_attribute_mapping', default: {}
|
|
66
|
+
t.jsonb 'column_overrides', default: {}
|
|
67
|
+
t.jsonb 'association_overrides', default: {}
|
|
68
|
+
t.string 'included_models', default: [], array: true
|
|
69
|
+
t.string 'excluded_models', default: [], array: true
|
|
70
|
+
t.jsonb 'model_filters', default: {}
|
|
71
|
+
t.jsonb 'association_selections', default: {}
|
|
72
|
+
t.jsonb 'polymorphic_associations', default: {}
|
|
73
|
+
t.datetime 'created_at', null: false
|
|
74
|
+
t.datetime 'updated_at', null: false
|
|
75
|
+
t.index ['dependee_id'], name: 'index_migration_steps_on_dependee_id'
|
|
76
|
+
t.index ['migration_plan_id'], name: 'index_migration_steps_on_migration_plan_id'
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
create_table 'users', force: :cascade do |t|
|
|
80
|
+
t.string 'email', default: '', null: false
|
|
81
|
+
t.string 'encrypted_password', default: '', null: false
|
|
82
|
+
t.string 'reset_password_token'
|
|
83
|
+
t.datetime 'reset_password_sent_at'
|
|
84
|
+
t.datetime 'remember_created_at'
|
|
85
|
+
t.integer 'role', default: 0, null: false
|
|
86
|
+
t.datetime 'created_at', null: false
|
|
87
|
+
t.datetime 'updated_at', null: false
|
|
88
|
+
t.string 'confirmation_token'
|
|
89
|
+
t.datetime 'confirmed_at'
|
|
90
|
+
t.datetime 'confirmation_sent_at'
|
|
91
|
+
t.string 'unconfirmed_email'
|
|
92
|
+
t.index ['confirmation_token'], name: 'index_users_on_confirmation_token', unique: true
|
|
93
|
+
t.index ['email'], name: 'index_users_on_email', unique: true
|
|
94
|
+
t.index ['reset_password_token'], name: 'index_users_on_reset_password_token', unique: true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
add_foreign_key 'migration_executions', 'migration_plans'
|
|
98
|
+
add_foreign_key 'migration_executions', 'users'
|
|
99
|
+
add_foreign_key 'migration_records', 'migration_executions'
|
|
100
|
+
add_foreign_key 'migration_steps', 'migration_plans'
|
|
101
|
+
add_foreign_key 'migration_steps', 'migration_steps', column: 'dependee_id'
|
|
102
|
+
end
|
data/db/seeds.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Create initial admin user for Data Migration engine
|
|
4
|
+
if DataMigrationUser.exists?(email: 'admin@datamigration.local')
|
|
5
|
+
puts 'ℹ️ Admin user already exists'
|
|
6
|
+
else
|
|
7
|
+
DataMigrationUser.create!(
|
|
8
|
+
name: 'Administrator',
|
|
9
|
+
email: 'admin@datamigration.local',
|
|
10
|
+
password: 'password',
|
|
11
|
+
password_confirmation: 'password',
|
|
12
|
+
role: :admin
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
puts '✅ Created admin user:'
|
|
16
|
+
puts ' Email: admin@datamigration.local'
|
|
17
|
+
puts ' Password: password'
|
|
18
|
+
puts ' ⚠️ CHANGE THIS PASSWORD IMMEDIATELY IN PRODUCTION!'
|
|
19
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'devise'
|
|
4
|
+
require 'pundit'
|
|
5
|
+
require 'sidekiq'
|
|
6
|
+
require 'zip'
|
|
7
|
+
|
|
8
|
+
module DataMigration
|
|
9
|
+
class Engine < ::Rails::Engine
|
|
10
|
+
# Mountable engine - does NOT use isolate_namespace
|
|
11
|
+
# This allows the engine to integrate with the host app's models
|
|
12
|
+
|
|
13
|
+
# Ensure engine's app directories are autoloaded
|
|
14
|
+
config.autoload_paths += %W[
|
|
15
|
+
#{config.root}/app/controllers
|
|
16
|
+
#{config.root}/app/models
|
|
17
|
+
#{config.root}/app/policies
|
|
18
|
+
#{config.root}/app/services
|
|
19
|
+
#{config.root}/app/jobs
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
config.generators do |g|
|
|
23
|
+
g.test_framework :rspec
|
|
24
|
+
g.fixture_replacement :factory_bot
|
|
25
|
+
g.factory_bot dir: 'spec/factories'
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
namespace :data_migration do
|
|
4
|
+
desc 'Install Data Migration engine (migrations + seed admin user)'
|
|
5
|
+
task install: :environment do
|
|
6
|
+
puts 'Installing Data Migration engine...'
|
|
7
|
+
puts '=' * 80
|
|
8
|
+
|
|
9
|
+
# Copy migrations
|
|
10
|
+
puts "
|
|
11
|
+
📦 Copying migrations..."
|
|
12
|
+
Rake::Task['data_migration:install:migrations'].invoke
|
|
13
|
+
|
|
14
|
+
# Run migrations
|
|
15
|
+
puts "
|
|
16
|
+
🔨 Running migrations..."
|
|
17
|
+
Rake::Task['db:migrate'].invoke
|
|
18
|
+
|
|
19
|
+
# Seed admin user
|
|
20
|
+
puts "
|
|
21
|
+
👤 Creating admin user..."
|
|
22
|
+
DataMigration::Engine.load_seed
|
|
23
|
+
|
|
24
|
+
puts "\n#{'=' * 80}"
|
|
25
|
+
puts '✅ Installation complete!'
|
|
26
|
+
puts "
|
|
27
|
+
📋 Next Steps:"
|
|
28
|
+
puts "1. Add to routes.rb: mount DataMigration::Engine => '/data_migration'"
|
|
29
|
+
puts '2. Configure Sidekiq in config/application.rb'
|
|
30
|
+
puts '3. Start Redis and Sidekiq'
|
|
31
|
+
puts '4. Visit /data_migration'
|
|
32
|
+
puts '5. Login with: admin@datamigration.local / password'
|
|
33
|
+
puts '6. ⚠️ CHANGE THE ADMIN PASSWORD IMMEDIATELY!'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
desc 'Seed admin user'
|
|
37
|
+
task seed: :environment do
|
|
38
|
+
DataMigration::Engine.load_seed
|
|
39
|
+
end
|
|
40
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: data_migration_for_rails
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Vaibhav Rokkam
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-03-03 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bcrypt
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 3.1.7
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 3.1.7
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: devise
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '4.9'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '4.9'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: pundit
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '2.3'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '2.3'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rails
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '7.1'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '7.1'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: redis
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: 4.0.1
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: 4.0.1
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rubyzip
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '2.3'
|
|
90
|
+
type: :runtime
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '2.3'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: sidekiq
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '7.0'
|
|
104
|
+
type: :runtime
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '7.0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: factory_bot_rails
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '6.0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '6.0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: faker
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '3.0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '3.0'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: rspec-rails
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - ">="
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '6.0'
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - ">="
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '6.0'
|
|
153
|
+
description: A web-based tool for exporting and importing Rails application data with
|
|
154
|
+
audit trails and role-based access control.
|
|
155
|
+
email:
|
|
156
|
+
- vaibhav.rao200@gmail.com
|
|
157
|
+
executables: []
|
|
158
|
+
extensions: []
|
|
159
|
+
extra_rdoc_files: []
|
|
160
|
+
files:
|
|
161
|
+
- LICENSE
|
|
162
|
+
- README.md
|
|
163
|
+
- Rakefile
|
|
164
|
+
- app/assets/config/manifest.js
|
|
165
|
+
- app/assets/stylesheets/application.css
|
|
166
|
+
- app/channels/application_cable/channel.rb
|
|
167
|
+
- app/channels/application_cable/connection.rb
|
|
168
|
+
- app/controllers/concerns/data_migration/pundit_authorization.rb
|
|
169
|
+
- app/controllers/data_migration/application_controller.rb
|
|
170
|
+
- app/controllers/data_migration/exports_controller.rb
|
|
171
|
+
- app/controllers/data_migration/imports_controller.rb
|
|
172
|
+
- app/controllers/data_migration/migration_executions_controller.rb
|
|
173
|
+
- app/controllers/data_migration/migration_plans_controller.rb
|
|
174
|
+
- app/controllers/data_migration/migration_steps_controller.rb
|
|
175
|
+
- app/controllers/data_migration/users_controller.rb
|
|
176
|
+
- app/controllers/users/sessions_controller.rb
|
|
177
|
+
- app/helpers/data_migration/application_helper.rb
|
|
178
|
+
- app/jobs/application_job.rb
|
|
179
|
+
- app/jobs/export_job.rb
|
|
180
|
+
- app/jobs/import_job.rb
|
|
181
|
+
- app/mailers/application_mailer.rb
|
|
182
|
+
- app/models/application_record.rb
|
|
183
|
+
- app/models/data_migration_user.rb
|
|
184
|
+
- app/models/migration_execution.rb
|
|
185
|
+
- app/models/migration_plan.rb
|
|
186
|
+
- app/models/migration_record.rb
|
|
187
|
+
- app/models/migration_step.rb
|
|
188
|
+
- app/policies/application_policy.rb
|
|
189
|
+
- app/policies/data_migration/user_policy.rb
|
|
190
|
+
- app/policies/data_migration_user_policy.rb
|
|
191
|
+
- app/policies/migration_execution_policy.rb
|
|
192
|
+
- app/policies/migration_plan_policy.rb
|
|
193
|
+
- app/policies/migration_step_policy.rb
|
|
194
|
+
- app/services/data_migration/model_registry.rb
|
|
195
|
+
- app/services/exports/generator_service.rb
|
|
196
|
+
- app/services/imports/processor_service.rb
|
|
197
|
+
- app/services/migration_plans/export_config_service.rb
|
|
198
|
+
- app/services/migration_plans/import_config_service.rb
|
|
199
|
+
- app/views/data_migration/devise/registrations/edit.html.erb
|
|
200
|
+
- app/views/data_migration/devise/sessions/new.html.erb
|
|
201
|
+
- app/views/data_migration/devise/shared/_error_messages.html.erb
|
|
202
|
+
- app/views/data_migration/devise/shared/_links.html.erb
|
|
203
|
+
- app/views/data_migration/exports/new.html.erb
|
|
204
|
+
- app/views/data_migration/imports/new.html.erb
|
|
205
|
+
- app/views/data_migration/migration_executions/index.html.erb
|
|
206
|
+
- app/views/data_migration/migration_executions/show.html.erb
|
|
207
|
+
- app/views/data_migration/migration_plans/_form.html.erb
|
|
208
|
+
- app/views/data_migration/migration_plans/edit.html.erb
|
|
209
|
+
- app/views/data_migration/migration_plans/index.html.erb
|
|
210
|
+
- app/views/data_migration/migration_plans/new.html.erb
|
|
211
|
+
- app/views/data_migration/migration_plans/show.html.erb
|
|
212
|
+
- app/views/data_migration/migration_steps/_form.html.erb
|
|
213
|
+
- app/views/data_migration/migration_steps/edit.html.erb
|
|
214
|
+
- app/views/data_migration/migration_steps/new.html.erb
|
|
215
|
+
- app/views/data_migration/users/_form.html.erb
|
|
216
|
+
- app/views/data_migration/users/edit.html.erb
|
|
217
|
+
- app/views/data_migration/users/index.html.erb
|
|
218
|
+
- app/views/data_migration/users/new.html.erb
|
|
219
|
+
- app/views/data_migration/users/show.html.erb
|
|
220
|
+
- app/views/layouts/_navbar.html.erb
|
|
221
|
+
- app/views/layouts/data_migration.html.erb
|
|
222
|
+
- app/views/layouts/mailer.html.erb
|
|
223
|
+
- app/views/layouts/mailer.text.erb
|
|
224
|
+
- app/views/users/registrations/edit.html.erb
|
|
225
|
+
- app/views/users/sessions/new.html.erb
|
|
226
|
+
- app/views/users/shared/_error_messages.html.erb
|
|
227
|
+
- app/views/users/shared/_links.html.erb
|
|
228
|
+
- config/initializers/assets.rb
|
|
229
|
+
- config/initializers/content_security_policy.rb
|
|
230
|
+
- config/initializers/devise.rb
|
|
231
|
+
- config/initializers/filter_parameter_logging.rb
|
|
232
|
+
- config/initializers/inflections.rb
|
|
233
|
+
- config/initializers/permissions_policy.rb
|
|
234
|
+
- config/initializers/warden.rb
|
|
235
|
+
- config/locales/devise.en.yml
|
|
236
|
+
- config/locales/en.yml
|
|
237
|
+
- config/routes.rb
|
|
238
|
+
- db/migrate/20251102121659_create_migration_plans.rb
|
|
239
|
+
- db/migrate/20251102122012_create_migration_steps.rb
|
|
240
|
+
- db/migrate/20251105215702_create_migration_executions.rb
|
|
241
|
+
- db/migrate/20251105215853_create_migration_records.rb
|
|
242
|
+
- db/migrate/20251115154000_remove_unused_attributes.rb
|
|
243
|
+
- db/migrate/20251116120000_add_filter_params_to_migration_executions.rb
|
|
244
|
+
- db/migrate/20251118140000_create_data_migration_users.rb
|
|
245
|
+
- db/migrate/20251118200641_add_user_foreign_keys.rb
|
|
246
|
+
- db/migrate/20251124140000_add_attachment_export_mode_to_migration_steps.rb
|
|
247
|
+
- db/schema.rb
|
|
248
|
+
- db/seeds.rb
|
|
249
|
+
- lib/data_migration.rb
|
|
250
|
+
- lib/data_migration/engine.rb
|
|
251
|
+
- lib/data_migration/version.rb
|
|
252
|
+
- lib/tasks/data_migration_tasks.rake
|
|
253
|
+
homepage: https://github.com/rokkamv/data_migration_for_rails
|
|
254
|
+
licenses:
|
|
255
|
+
- GPL-3.0
|
|
256
|
+
metadata:
|
|
257
|
+
homepage_uri: https://github.com/rokkamv/data_migration_for_rails
|
|
258
|
+
source_code_uri: https://github.com/rokkamv/data_migration_for_rails
|
|
259
|
+
github_repo: ssh://github.com/rokkamv/data_migration_for_rails
|
|
260
|
+
post_install_message:
|
|
261
|
+
rdoc_options: []
|
|
262
|
+
require_paths:
|
|
263
|
+
- lib
|
|
264
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
265
|
+
requirements:
|
|
266
|
+
- - ">="
|
|
267
|
+
- !ruby/object:Gem::Version
|
|
268
|
+
version: '0'
|
|
269
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
|
+
requirements:
|
|
271
|
+
- - ">="
|
|
272
|
+
- !ruby/object:Gem::Version
|
|
273
|
+
version: '0'
|
|
274
|
+
requirements: []
|
|
275
|
+
rubygems_version: 3.2.3
|
|
276
|
+
signing_key:
|
|
277
|
+
specification_version: 4
|
|
278
|
+
summary: Rails engine for migrating data between environments
|
|
279
|
+
test_files: []
|