Sha256: 84454bb25c6dd5000677c9e506b1fc83bbf9bfbc3150c568931b6676c9812e6d

Contents?: true

Size: 225 Bytes

Versions: 3

Compression:

Stored size: 225 Bytes

Contents

# frozen_string_literal: true

class AddForeignKeyToUsersTable < ActiveRecord::Migration[5.2]
  def change
    add_foreign_key :solidus_jwt_tokens, Spree.user_class.table_name, column: :user_id, on_delete: :cascade
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_jwt-1.2.2 db/migrate/20191212083655_add_foreign_key_to_users_table.rb
solidus_jwt-1.2.1 db/migrate/20191212083655_add_foreign_key_to_users_table.rb
solidus_jwt-1.2.0 db/migrate/20191212083655_add_foreign_key_to_users_table.rb