19 lines
368 B
Ruby
19 lines
368 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: project_import_data
|
|
#
|
|
# id :integer not null, primary key
|
|
# project_id :integer
|
|
# data :text
|
|
#
|
|
|
|
require 'carrierwave/orm/activerecord'
|
|
require 'file_size_validator'
|
|
|
|
class ProjectImportData < ActiveRecord::Base
|
|
belongs_to :project
|
|
|
|
serialize :data, JSON
|
|
|
|
validates :project, presence: true
|
|
end
|