Skip to content

Commit 8973412

Browse files
author
Allen Kerr
committed
Merge pull request maccman#5 from airbnb/switch-to-text-column
Change url field to TEXT because urls can be long
2 parents c25f1ad + 8acf6e3 commit 8973412

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

migrations/002_change_url_to_text.rb

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Sequel.migration do
2+
up do
3+
alter_table :links do
4+
set_column_type :url, Text
5+
end
6+
end
7+
8+
down do
9+
alter_table :links do
10+
set_column_type :url, String
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)