diff --git a/db/migrate/20150210182519_rename_cc_license.rb b/db/migrate/20150210182519_rename_cc_license.rb new file mode 100644 index 0000000..9cc7fc8 --- /dev/null +++ b/db/migrate/20150210182519_rename_cc_license.rb @@ -0,0 +1,13 @@ +class RenameCcLicense < ActiveRecord::Migration + def up + license = LicenseInfo.find_by_version "CC-GPL-V2" + license.version = "Creative Commons GPL V2" + license.save! + end + + def down + license = LicenseInfo.find_by_version "Creative Commons GPL V2" + license.version = "CC-GPL-V2" + license.save! + end +end -- libgit2 0.21.2