Commit Graph

18 Commits

Author SHA1 Message Date
Shinya Maeda 6732795231 Add memoization for properties 2018-01-08 22:24:23 +09:00
Shinya Maeda df658c7b13 Disable STI of ActiveRecord. Refactoring specs. 2018-01-08 16:22:18 +09:00
Shinya Maeda 58d074e001 Fix StaticSnalysys 2018-01-08 16:22:18 +09:00
Shinya Maeda 183dbdc8b8 Revert bulk_insert and bring back AR insert(one by one) 2018-01-08 16:22:18 +09:00
Shinya Maeda 2d3c7d29b2 Use batch update for Service deactivation 2018-01-08 16:22:18 +09:00
Shinya Maeda 8bc3221f2f Fix query to look for proper unmanaged kubernetes service 2018-01-08 16:22:18 +09:00
Shinya Maeda acfb8464be Fix static anylysy 2018-01-08 16:22:18 +09:00
Shinya Maeda b8a275d3e4 Use bulk_insert instead of AR create 2018-01-08 16:22:17 +09:00
Shinya Maeda c80598816c Opitmize migration process by using both unmanaged_kubernetes_service and kubernetes_service_without_template 2018-01-08 16:22:17 +09:00
Shinya Maeda 665972e2f5 Avoid quotes in ActiveRecord query 2018-01-08 16:22:17 +09:00
Shinya Maeda 9b7719b6c6 Use explicit namespace for avoiding reference from application code 2018-01-08 16:22:17 +09:00
Shinya Maeda f083739e99 Add logic to swtich environment_scope by the situation 2018-01-08 16:22:17 +09:00
Shinya Maeda 7eeada80d5 Add env_scope tests 2018-01-08 16:22:17 +09:00
Shinya Maeda 4dc14576d5 Fix comments 2018-01-08 16:22:17 +09:00
Shinya Maeda 40c6af546e Fix migration file typos and reorder Table definition 2018-01-08 16:22:17 +09:00
Shinya Maeda b9fbfe5a6b Fix unmanaged_kubernetes_service scope for multiple clusters 2018-01-08 16:22:17 +09:00
Shinya Maeda e474549282 Add test. Disable KubernetesService when migrated 2018-01-08 16:22:17 +09:00
Shinya Maeda 5b2ca1c66c Migrate existing data from KubernetesService to Clusters::Platforms::Kubernetes 2018-01-08 16:22:17 +09:00