Add LinterCheck and LinterCheckRun
This commit is contained in:
19
db/migrate/20201026184633_create_linter_checks.rb
Normal file
19
db/migrate/20201026184633_create_linter_checks.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class CreateLinterChecks < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :linter_checks do |t|
|
||||
t.string :name, null: false
|
||||
t.string :code, null: false
|
||||
t.string :severity
|
||||
end
|
||||
|
||||
create_table :linter_check_runs do |t|
|
||||
t.references :linter_check, null: false
|
||||
t.string :scope
|
||||
t.integer :line
|
||||
t.text :result
|
||||
t.references :testrun, null: false
|
||||
t.references :file, null: false
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user