Fix missing/incorrect Model specifications in migrations

We need to define the required models within the migration (not below) to work reliably.
This commit is contained in:
Sebastian Serth
2024-07-01 23:29:15 +02:00
committed by Sebastian Serth
parent cef961a1e7
commit 6c44ffbd5c
20 changed files with 211 additions and 39 deletions

View File

@ -1,6 +1,9 @@
# frozen_string_literal: true
class SorceryCore < ActiveRecord::Migration[4.2]
class InternalUser < ApplicationRecord
end
def change
InternalUser.delete_all
add_column :internal_users, :crypted_password, :string, null: false