1 class AddTermsSeenToUser < ActiveRecord::Migration[4.2]
 
   2   class User < ApplicationRecord
 
   6     add_column :users, :terms_seen, :boolean, :null => false, :default => false
 
   8     # best guess available is just that everyone who has agreed has
 
   9     # seen the terms, and that noone else has.
 
  10     User.update_all "terms_seen = (terms_agreed is not null)"
 
  14     remove_column :users, :terms_seen