X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..d130db9fa84da832a6a0cb0333982725fdc480c7:/db/migrate/051_add_status_to_user.rb?ds=inline diff --git a/db/migrate/051_add_status_to_user.rb b/db/migrate/051_add_status_to_user.rb index d3adcee33..5cf8a920f 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -1,6 +1,9 @@ require "migrate" -class AddStatusToUser < ActiveRecord::Migration[5.0] +class AddStatusToUser < ActiveRecord::Migration[4.2] + class User < ActiveRecord::Base + end + def self.up create_enumeration :user_status_enum, %w[pending active confirmed suspended deleted]