Sha256: 31b11175c9142db6ae74bdd2eb06b97712d2f5de04649a329b2c285547368cd3
Contents?: true
Size: 452 Bytes
Versions: 14
Compression:
Stored size: 452 Bytes
Contents
# -*- encoding : utf-8 -*- class UpdateCodenames < ActiveRecord::Migration def up { content: :structure, edit_help: :help }.each do |oldname, newname| execute %{update cards set codename = "#{newname}" where codename = "#{oldname}";} end end def down { content: :structure, edit_help: :help }.each do |oldname, newname| execute %{update cards set codename = "#{oldname}" where codename = "#{newname}";} end end end
Version data entries
14 entries across 14 versions & 1 rubygems