From 50e88e2f66016724625f43c82f96e1a7658a3ac0 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Wed, 22 Apr 2015 12:05:42 -0300 Subject: [PATCH] Revert "Merge branch 'fix_migration' into 'stable'" --- db/migrate/20150408231524_add_settings_to_comments.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/db/migrate/20150408231524_add_settings_to_comments.rb b/db/migrate/20150408231524_add_settings_to_comments.rb index 1e44e1f..9342ec0 100644 --- a/db/migrate/20150408231524_add_settings_to_comments.rb +++ b/db/migrate/20150408231524_add_settings_to_comments.rb @@ -1,9 +1,5 @@ class AddSettingsToComments < ActiveRecord::Migration - def self.up - add_column :comments, :setting, :text unless column_exists?(:comments, :setting) - end - - def self.down - remove_column :comments, :setting + def change + rename_column :comments, :setting, :settings end end -- libgit2 0.21.2