Commit 636376dd authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg Committed by Kamil Trzcinski

WIP

parent e0f84130
module Ci
class Artifact < ActiveRecord::Base
belongs_to :build, class_name: "Ci::Build"
belongs_to :project, class_name: "Ci::Build"
enum type {
archive: 0,
metadata: 1,
trace: 2
}
end
end
class CreateArtifacts < ActiveRecord::Migration
def change
create_table :artifacts do |t|
t.timestamps null: false
end
end
end
require 'rails_helper'
RSpec.describe Artifact, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment