Remove external project ID

If we _do_ integrate with an external service, a different plugin should
add that.

Resolves #2164
This commit is contained in:
Trevor Vallender 2023-11-30 16:49:12 +00:00
parent 62d924dadc
commit b93204d126
5 changed files with 5 additions and 8 deletions

View File

@ -50,7 +50,6 @@ class JobsController < ApplicationController
:ends_on,
:project_id,
:budget,
:external_project_id,
:name,
:description,
time_budgets_attributes: [:id, :activity_id, :hours, :job_id, :_destroy]

View File

@ -19,10 +19,6 @@
<%= f.hidden_field :project_id, value: @job.project.id %>
<p>
<%= f.label :external_project_id %>
<%= f.number_field :external_project_id %>
<fieldset>
<legend>Budget</legend>
<%= f.fields_for :time_budgets do |ff| %>

View File

@ -3,7 +3,6 @@
<td><%= format_date(job.starts_on) %></td>
<td><%= format_date(job.ends_on) %></td>
<td><%= job.project_id %></td>
<td><%= job.external_project_id %></td>
<td>
<%= l_hours_short(job.total_time_budget) %>
</td>

View File

@ -18,8 +18,6 @@
<div class="value"><%= format_date(@job.starts_on) %></div>
<div class="label">Ends on:</div>
<div class="value"><%= format_date(@job.starts_on) %></div>
<div class="label">External project ID:</div>
<div class="value"><%= @job.external_project_id %></div>
</div>
</div>
<div class="splitcontentright">

View File

@ -0,0 +1,5 @@
class RemoveExternalProjectIdFromJobs < ActiveRecord::Migration[6.1]
def change
remove_column :jobs, :external_project_id, :integer
end
end