lib/yinx_sql/book.rb in yinx_sql-0.1.0 vs lib/yinx_sql/book.rb in yinx_sql-0.1.1
- old
+ new
@@ -2,10 +2,10 @@
module SQL
class Book < ActiveRecord::Base
belongs_to :stack
belongs_to :batch
- has_many :notes
+ has_many :notes, dependent: :destroy
end
end
end