Files
codeocean/db/migrate/20140826073318_sorcery_core.rb
Sebastian Serth 6c44ffbd5c Fix missing/incorrect Model specifications in migrations
We need to define the required models within the migration (not below) to work reliably.
2024-07-04 11:02:10 +02:00

14 lines
363 B
Ruby

# 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
add_column :internal_users, :salt, :string, null: false
add_index :internal_users, :email, unique: true
end
end