1 class AddTermsSeenToUser < ActiveRecord::Migration[5.0]
3 add_column :users, :terms_seen, :boolean, :null => false, :default => false
5 # best guess available is just that everyone who has agreed has
6 # seen the terms, and that noone else has.
7 User.update_all "terms_seen = (terms_agreed is not null)"
11 remove_column :users, :terms_seen