app/models/bigbluebutton_server.rb in bigbluebutton_rails-0.1.0 vs app/models/bigbluebutton_server.rb in bigbluebutton_rails-0.1.1
- old
+ new
@@ -2,10 +2,10 @@
class BigbluebuttonServer < ActiveRecord::Base
has_many :rooms,
:class_name => 'BigbluebuttonRoom',
:foreign_key => 'server_id',
- :dependent => :destroy
+ :dependent => :nullify
validates :name,
:presence => true,
:uniqueness => true,
:length => { :minimum => 1, :maximum => 500 }