From: Andy Allan Date: Wed, 29 Nov 2017 16:05:12 +0000 (+0000) Subject: Remove the reassign column from issue_comments X-Git-Tag: live~2957^2~86 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2dd8f09395f1a8e050330b360154e5b7ad1a8492 Remove the reassign column from issue_comments Reassigning is an effect of a controller action, not something that should be stored in the database like this. --- diff --git a/app/models/issue_comment.rb b/app/models/issue_comment.rb index bbc15aefa..7a51265f3 100644 --- a/app/models/issue_comment.rb +++ b/app/models/issue_comment.rb @@ -6,7 +6,6 @@ # issue_id :integer not null # commenter_user_id :integer not null # body :text not null -# reassign :boolean # created_at :datetime not null # updated_at :datetime not null # diff --git a/db/migrate/20160822153115_create_issue_comments.rb b/db/migrate/20160822153115_create_issue_comments.rb index 725560787..73aab9a12 100644 --- a/db/migrate/20160822153115_create_issue_comments.rb +++ b/db/migrate/20160822153115_create_issue_comments.rb @@ -4,7 +4,6 @@ class CreateIssueComments < ActiveRecord::Migration[5.0] t.integer :issue_id, :null => false t.integer :commenter_user_id, :null => false t.text :body, :null => false - t.boolean :reassign t.timestamps :null => false end diff --git a/db/structure.sql b/db/structure.sql index 7888d8a9c..832573183 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -694,7 +694,6 @@ CREATE TABLE issue_comments ( issue_id integer NOT NULL, commenter_user_id integer NOT NULL, body text NOT NULL, - reassign boolean, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL );