Commit 50e88e2f66016724625f43c82f96e1a7658a3ac0
1 parent
f99f5923
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Revert "Merge branch 'fix_migration' into 'stable'"
This reverts commit f99f59236b594a7ce10894c97821b1d60364086d, reversing changes made to 6736c36dea7396555087da22fe45f001a289a944.
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
db/migrate/20150408231524_add_settings_to_comments.rb
1 | 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 | 4 | end |
9 | 5 | end | ... | ... |