提交 636376dd 编写于 作者: Z Zeger-Jan van de Weg 提交者: Kamil Trzcinski

WIP

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册