Sha256: 9f6559f9633028314034f13e591a82c5d671468c794165e91fa1d2f4e0af3074
Contents?: true
Size: 513 Bytes
Versions: 29
Compression:
Stored size: 513 Bytes
Contents
class ConvertStiColumns < ActiveRecord::Migration[4.2] def up Shipit::Task.where(type: 'Task').update_all(type: 'Shipit::Task') Shipit::Task.where(type: 'Deploy').update_all(type: 'Shipit::Deploy') Shipit::Task.where(type: 'Rollback').update_all(type: 'Shipit::Rollback') Shipit::GithubHook.where(type: 'GithubHook::Repo').update_all(type: 'Shipit::GithubHook::Repo') Shipit::GithubHook.where(type: 'GithubHook::Organization').update_all(type: 'Shipit::GithubHook::Organization') end end
Version data entries
29 entries across 29 versions & 1 rubygems