forked from Trustie/forgeplus
24 lines
621 B
Ruby
24 lines
621 B
Ruby
class CreateSonarTasks < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :sonar_tasks do |t|
|
|
t.references :project
|
|
t.references :user
|
|
t.string :branch
|
|
t.string :git_url
|
|
t.string :project_identifier
|
|
t.string :project_name
|
|
t.string :language
|
|
t.string :task_id
|
|
t.string :task_name
|
|
t.integer :codeLines, default: 0
|
|
t.integer :bugs, default: 0
|
|
t.integer :codeSmell, default: 0
|
|
t.integer :vulnerability, default: 0
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :sonar_tasks, :task_id
|
|
add_index :sonar_tasks, :project_identifier
|
|
end
|
|
end
|