X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c8ee1351049ef1bb4d7b50d071b2a96154266d1d..be0d3b49fd7cbb68f09c33d68edb20fe51b0ae2a:/db/migrate/013_add_email_valid.rb diff --git a/db/migrate/013_add_email_valid.rb b/db/migrate/013_add_email_valid.rb index a01809701..4e9112957 100644 --- a/db/migrate/013_add_email_valid.rb +++ b/db/migrate/013_add_email_valid.rb @@ -1,7 +1,7 @@ -class AddEmailValid < ActiveRecord::Migration +class AddEmailValid < ActiveRecord::Migration[5.0] def self.up add_column "users", "email_valid", :boolean, :default => false, :null => false - User.update_all("email_valid = (active != 0)") #email_valid is :boolean, but active is :integer. "email_valid = active" (see r11802 or earlier) will fail for stricter dbs than mysql + User.update_all("email_valid = (active != 0)") # email_valid is :boolean, but active is :integer. "email_valid = active" (see r11802 or earlier) will fail for stricter dbs than mysql end def self.down