X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/29a780eb1af9ca5f8b55e53cf89701b297707607..b606acba0c28652fa6f066c2b5d989ceae41c194:/db/migrate/013_add_email_valid.rb?ds=sidebyside diff --git a/db/migrate/013_add_email_valid.rb b/db/migrate/013_add_email_valid.rb index 4e9112957..a45e5928a 100644 --- a/db/migrate/013_add_email_valid.rb +++ b/db/migrate/013_add_email_valid.rb @@ -1,4 +1,4 @@ -class AddEmailValid < ActiveRecord::Migration[5.0] +class AddEmailValid < ActiveRecord::Migration[4.2] 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