socialforge/db/migrate/20140814062455_change_forum...

10 lines
215 B
Ruby

class ChangeForumDescription < ActiveRecord::Migration
def up
change_column :forums, :description, :text, default: nil
end
def down
change_column :forums, :description, :string, default: ''
end
end