ManageIQ/manageiq-schema

View on GitHub

Showing 238 of 238 total issues

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_13", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_17", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_18", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_04", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_07", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_10", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_20", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_21", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_23", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_09", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_12", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_05", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_11", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_00", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_06", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4450..4525
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 24 locations. Consider refactoring.
Open

create_table "metrics_15", id: :bigint, force: :cascade do |t|
t.datetime "timestamp"
t.integer "capture_interval"
t.string "resource_type"
t.bigint "resource_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 23 other locations - About 7 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3295..3370
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3372..3447
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3449..3524
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3526..3601
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3603..3678
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3680..3755
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3757..3832
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3834..3909
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3911..3986
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 3988..4063
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4065..4140
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4142..4217
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4219..4294
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4296..4371
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4373..4448
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4527..4602
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4604..4679
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4681..4756
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4758..4833
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4835..4910
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4912..4987
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 4989..5064
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5066..5141

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def change
drop_table :workflows do |t|
t.references :ems, :type => :bigint, :index => true, :references => :ext_management_system
t.references :tenant, :type => :bigint, :index => true
t.references :git_reference, :type => :bigint, :index => true
Severity: Major
Found in db/migrate/20230425153512_drop_workflow_workflow_instance.rb and 1 other location - About 5 hrs to fix
db/migrate/20230117190802_create_workflow_migrations.rb on lines 2..32

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def change
create_table :workflows do |t|
t.references :ems, :type => :bigint, :index => true, :references => :ext_management_system
t.references :tenant, :type => :bigint, :index => true
t.references :git_reference, :type => :bigint, :index => true
Severity: Major
Found in db/migrate/20230117190802_create_workflow_migrations.rb and 1 other location - About 5 hrs to fix
db/migrate/20230425153512_drop_workflow_workflow_instance.rb on lines 2..31

Similar blocks of code found in 2 locations. Consider refactoring.
Open

say_with_time("Fixing IBM PowerVC Network STI classes") do
ibm_power_vc_network_klass = "ManageIQ::Providers::IbmPowerVc::NetworkManager"
openstack_network_klass = "ManageIQ::Providers::Openstack::NetworkManager"
 
network_managers = ExtManagementSystem.in_my_region.where(:type => ibm_power_vc_network_klass)
Severity: Major
Found in db/migrate/20220809152005_fix_ibm_power_vc_sti_classes.rb and 1 other location - About 4 hrs to fix
db/migrate/20220809152005_fix_ibm_power_vc_sti_classes.rb on lines 134..166

Similar blocks of code found in 2 locations. Consider refactoring.
Open

say_with_time("Resetting IBM PowerVC Network STI classes") do
ibm_power_vc_network_klass = "ManageIQ::Providers::IbmPowerVc::NetworkManager"
openstack_network_klass = "ManageIQ::Providers::Openstack::NetworkManager"
 
network_managers = ExtManagementSystem.in_my_region.where(:type => ibm_power_vc_network_klass)
Severity: Major
Found in db/migrate/20220809152005_fix_ibm_power_vc_sti_classes.rb and 1 other location - About 4 hrs to fix
db/migrate/20220809152005_fix_ibm_power_vc_sti_classes.rb on lines 78..110
Severity
Category
Status
Source
Language