app/models/bjond_registration.rb in bjond-api-0.1.4 vs app/models/bjond_registration.rb in bjond-api-0.1.5
- old
+ new
@@ -1,9 +1,9 @@
include BjondApi
require 'attr_encrypted'
class BjondRegistration < ActiveRecord::Base
- has_many :bjond_services
+ has_many :bjond_services, :dependent => :destroy
attr_encrypted :encryption_key, key: ENV[BjondApi::BjondAppConfig.instance.encryption_key_name]
def self.find_registration_by_remote_ip(ip)