Remove created_at / updated_at column definitions since these duplicate t.timestamps
This commit is contained in:
parent
c00c515d9d
commit
67a95ac7e9
3 changed files with 2 additions and 9 deletions
|
@ -10,10 +10,7 @@ class CreateIssuesAndReports < ActiveRecord::Migration
|
|||
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
|
||||
|
||||
|
@ -26,9 +23,6 @@ class CreateIssuesAndReports < ActiveRecord::Migration
|
|||
t.integer :issue_id
|
||||
t.integer :reporter_user_id
|
||||
t.text :details, :null => false
|
||||
t.datetime :created_at
|
||||
t.datetime :updated_at
|
||||
|
||||
t.timestamps :null => false
|
||||
end
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ class CreateIssueComments < ActiveRecord::Migration
|
|||
t.integer :issue_id
|
||||
t.integer :commenter_user_id
|
||||
t.text :body
|
||||
t.datetime :created_at
|
||||
t.boolean :reassign
|
||||
t.timestamps :null => false
|
||||
end
|
||||
|
|
|
@ -694,8 +694,8 @@ CREATE TABLE issue_comments (
|
|||
issue_id integer,
|
||||
commenter_user_id integer,
|
||||
body text,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
reassign boolean,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL
|
||||
);
|
||||
|
||||
|
@ -732,9 +732,9 @@ CREATE TABLE issues (
|
|||
issue_type character varying,
|
||||
resolved_at timestamp without time zone,
|
||||
resolved_by integer,
|
||||
updated_by integer,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
updated_by integer,
|
||||
report_count integer DEFAULT 0
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue