debian-mirror-gitlab/app/models/project_import_data.rb

20 lines
368 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
# == Schema Information
#
2015-09-11 14:41:01 +05:30
# Table name: project_import_data
2015-04-26 12:48:37 +05:30
#
2015-09-11 14:41:01 +05:30
# id :integer not null, primary key
# project_id :integer
# data :text
2015-04-26 12:48:37 +05:30
#
require 'carrierwave/orm/activerecord'
require 'file_size_validator'
class ProjectImportData < ActiveRecord::Base
belongs_to :project
serialize :data, JSON
validates :project, presence: true
end