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:
parent
6ebb21b660
commit
d130db9fa8
14 changed files with 56 additions and 0 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue