Skip to content

Commit 5ab3a17

Browse files
committed
Merge pull request #80 from agmps17/rails-4
Adding migration for changing custom_options column to text type
2 parents 2a0fe0c + ceb4ed7 commit 5ab3a17

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class ChangeCustomOptionsToTextField < ActiveRecord::Migration
2+
def up
3+
change_table :webapps do |t|
4+
t.change :custom_options, :text, :default => nil
5+
end
6+
end
7+
def down
8+
change_table :webapps do |t|
9+
t.change :custom_options, :string, :default => ""
10+
end
11+
end
12+
end

0 commit comments

Comments
 (0)