Skip to content

Commit 6b34f7a

Browse files
authored
Merge pull request #88 from vividtone/fix-irreversible-migration-008
Fixes the migration 008 is irreversible
2 parents 14f4977 + 67f66e5 commit 6b34f7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
class ChangeDefaultBugfixOnViewCustomizes < ActiveRecord::CompatibleLegacyMigration.migration_class
2-
def change
2+
def up
33
change_column_default :view_customizes, :path_pattern, ""
44
change_column_default :view_customizes, :comments, ""
55
end
6+
7+
def down
8+
# Leave the default values unchanged
9+
end
610
end

0 commit comments

Comments
 (0)