diaspora/db/migrate/20150724152052_remove_favorites_from_posts.rb
theworldbright 2a3dde1ae5 Refactor PostService and extract its tests
Squashed commits:

[ada0f09] Remove favorites from Posts table

closes #6208
2015-07-26 13:10:24 +02:00

9 lines
199 B
Ruby

class RemoveFavoritesFromPosts < ActiveRecord::Migration
def self.up
remove_column :posts, :favorite
end
def self.down
add_column :posts, :favorite, :boolean, default: false
end
end