Commit 50e88e2f66016724625f43c82f96e1a7658a3ac0

Authored by Evandro Junior
1 parent f99f5923

Revert "Merge branch 'fix_migration' into 'stable'"

This reverts commit f99f59236b594a7ce10894c97821b1d60364086d, reversing
changes made to 6736c36dea7396555087da22fe45f001a289a944.
db/migrate/20150408231524_add_settings_to_comments.rb
1 class AddSettingsToComments < ActiveRecord::Migration 1 class AddSettingsToComments < ActiveRecord::Migration
2 - def self.up  
3 - add_column :comments, :setting, :text unless column_exists?(:comments, :setting)  
4 - end  
5 -  
6 - def self.down  
7 - remove_column :comments, :setting 2 + def change
  3 + rename_column :comments, :setting, :settings
8 end 4 end
9 end 5 end