Added Issue Type + Issue Reassigning + Last updated_by

This commit is contained in:
Shrey 2015-06-13 23:57:36 +05:30 committed by Matt Amos
parent fb78544d05
commit f72c34aaf8
11 changed files with 85 additions and 25 deletions

View file

@ -7,10 +7,12 @@ class CreateIssuesAndReports < ActiveRecord::Migration
t.integer :reportable_id, :null => false
t.integer :reported_user_id, :null => false
t.integer :status
t.string :issue_type
t.datetime :resolved_at
t.integer :resolved_by
t.datetime :created_at
t.datetime :updated_at
t.integer :updated_by
t.timestamps null: false
end

View file

@ -5,7 +5,7 @@ class CreateIssueComments < ActiveRecord::Migration
t.integer :commenter_user_id
t.text :body
t.datetime :created_at
t.boolean :reassign
t.timestamps null: false
end

View file

@ -151,10 +151,6 @@ CREATE FUNCTION xid_to_int4(xid) RETURNS integer
AS '$libdir/libpgosm', 'xid_to_int4';
SET default_tablespace = '';
SET default_with_oids = false;
SET default_tablespace = '';
SET default_with_oids = false;
@ -677,6 +673,7 @@ CREATE TABLE issue_comments (
commenter_user_id integer,
body text,
created_at timestamp without time zone NOT NULL,
reassign boolean,
updated_at timestamp without time zone NOT NULL
);
@ -710,10 +707,12 @@ CREATE TABLE issues (
reportable_id integer NOT NULL,
reported_user_id integer NOT NULL,
status integer,
issue_type character varying,
resolved_at timestamp without time zone,
resolved_by integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
updated_at timestamp without time zone NOT NULL,
updated_by integer
);