Avoid more models in old migrations

Although these migrations run fine today, they could break in the future
if changes are made to the current model code.
This commit is contained in:
Andy Allan 2019-07-17 12:16:20 +02:00
parent 6ebb21b660
commit d130db9fa8
14 changed files with 56 additions and 0 deletions

View file

@ -1,6 +1,9 @@
require "migrate"
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]