Commit d4785b69e46885a570b88c006d3a6758111ef31d
Committed by
David Silva
1 parent
526afc86
Exists in
master
and in
5 other branches
Add migration to rename creative commons license
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | +class RenameCcLicense < ActiveRecord::Migration | |
| 2 | + def up | |
| 3 | + license = LicenseInfo.find_by_version "CC-GPL-V2" | |
| 4 | + license.version = "Creative Commons GPL V2" | |
| 5 | + license.save! | |
| 6 | + end | |
| 7 | + | |
| 8 | + def down | |
| 9 | + license = LicenseInfo.find_by_version "Creative Commons GPL V2" | |
| 10 | + license.version = "CC-GPL-V2" | |
| 11 | + license.save! | |
| 12 | + end | |
| 13 | +end | ... | ... |