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

Version Path
shipit-engine-0.39.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.38.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.37.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.36.1 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.36.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.35.1 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.35.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.34.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.33.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.32.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.31.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.30.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.29.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.28.1 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.28.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.27.1 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.27.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.26.0 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.25.1 db/migrate/20160104151833_convert_sti_columns.rb
shipit-engine-0.25.0 db/migrate/20160104151833_convert_sti_columns.rb