Skip to content

Commit 5202070

Browse files
committed
Add a not null constraint for protips/slug
1 parent a4a58b4 commit 5202070

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class AddNotNulltoProtipsSlug < ActiveRecord::Migration
2+
def up
3+
change_column_null :protips, :slug, false
4+
end
5+
6+
def down
7+
change_column_null :protips, :slug, true
8+
end
9+
end

0 commit comments

Comments
 (0)