travis-api/lib/travis/model/log/part.rb
Aakriti Gupta 65f1a29d86 Move travis-core files from /vendor to /lib.
- Re-factor
- Remove code for notifications
- Remove addons
- Remove travis-core gem.
- Ignore logs directory only
- Move core tests to spec/lib
2016-07-20 11:22:25 +02:00

6 lines
144 B
Ruby

class Log::Part < Travis::LogsModel
self.table_name = 'log_parts'
validates :log_id, presence: true, numericality: { greater_than: 0 }
end