BigW Consortium Gitlab

project_import_data.rb 368 Bytes
Newer Older
1 2
# == Schema Information
#
Stan Hu committed
3
# Table name: project_import_data
4
#
Stan Hu committed
5 6 7
#  id         :integer          not null, primary key
#  project_id :integer
#  data       :text
8 9 10 11 12 13 14 15 16 17 18 19
#

require 'carrierwave/orm/activerecord'
require 'file_size_validator'

class ProjectImportData < ActiveRecord::Base
  belongs_to :project
  
  serialize :data, JSON

  validates :project, presence: true
end