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 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue