WIP
This commit is contained in:
parent
e0f8413056
commit
636376dd4d
3 changed files with 25 additions and 0 deletions
12
app/models/ci/artifact.rb
Normal file
12
app/models/ci/artifact.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
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
|
8
db/migrate/20170918072948_create_artifacts.rb
Normal file
8
db/migrate/20170918072948_create_artifacts.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class CreateArtifacts < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :artifacts do |t|
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
5
spec/models/ci/artifact_spec.rb
Normal file
5
spec/models/ci/artifact_spec.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Artifact, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in a new issue