Skip to content

Commit

Permalink
Merge pull request #80 from agmps17/rails-4
Browse files Browse the repository at this point in the history
Adding migration for changing custom_options column to text type
  • Loading branch information
cpg committed Jun 27, 2014
2 parents 2a0fe0c + ceb4ed7 commit 5ab3a17
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db/migrate/20140627195608_change_custom_options_to_text_field.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class ChangeCustomOptionsToTextField < ActiveRecord::Migration
def up
change_table :webapps do |t|
t.change :custom_options, :text, :default => nil
end
end
def down
change_table :webapps do |t|
t.change :custom_options, :string, :default => ""
end
end
end

0 comments on commit 5ab3a17

Please sign in to comment.