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 AlterUserRolesAndBlocks < ActiveRecord::Migration[4.2]
class UserRole < ActiveRecord::Base
end
def self.up
# the initial granter IDs can be "self" - there are none of these
# in the current live DB, but there may be some in people's own local