FeedBunch-app/db/migrate/20140918085520_add_show_mobile_tour_to_user.rb
class AddShowMobileTourToUser < ActiveRecord::Migration[5.2]
def up
add_column :users, :show_mobile_tour, :boolean, default: true, null: true
User.all.each do |u|
u.update_column :show_mobile_tour, true
end
change_column_null :users, :show_mobile_tour, false
end
def down
remove_column :users, :show_mobile_tour
end
end