X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/001ff5764bcf15aaa179dc5c7844038676536622..7b057545c0b2030aad9981bd93699f9e33ad7d5f:/db/migrate/20110322001319_add_terms_seen_to_user.rb diff --git a/db/migrate/20110322001319_add_terms_seen_to_user.rb b/db/migrate/20110322001319_add_terms_seen_to_user.rb index 8178c1592..a95f15b4e 100644 --- a/db/migrate/20110322001319_add_terms_seen_to_user.rb +++ b/db/migrate/20110322001319_add_terms_seen_to_user.rb @@ -1,7 +1,7 @@ -class AddTermsSeenToUser < ActiveRecord::Migration +class AddTermsSeenToUser < ActiveRecord::Migration[5.0] def self.up add_column :users, :terms_seen, :boolean, :null => false, :default => false - + # best guess available is just that everyone who has agreed has # seen the terms, and that noone else has. User.update_all "terms_seen = (terms_agreed is not null)"