Sha256: d52f749067c318712fc2d843a0df98cd989f31ceacb6bc25f4ec676401ef4ebf
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
module TabloConnect class Movie < ActiveRecord::Base validates_presence_of :tablo_id validates_uniqueness_of :tablo_id enum copy_status: [:idle, :in_progress, :complete] scope :all_order_title, -> { self.all.order(:title) } def self.delete_by_tablo_id(delete_ids) self.where(tablo_id: delete_ids).delete_all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tablo_connect-0.0.3 | app/models/tablo_connect/movie.rb |
tablo_connect-0.0.2 | app/models/tablo_connect/movie.rb |