Skip to content

Commit

Permalink
adjusted database table creation to redmine 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Jungclaussen committed Dec 2, 2021
1 parent d0f2276 commit 9e22fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/migrate/001_create_vote_on_issues.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class CreateVoteOnIssues < ActiveRecord::Migration
class CreateVoteOnIssues < ActiveRecord::Migration[5.2]
def self.up
create_table :vote_on_issues do |t|
t.datetime :created_at
t.datetime :updated_at
t.references :issue, index: true, foreign_key: true
t.references :user, index: true, foreign_key: true
t.integer :issue_id, index: true, foreign_key: true
t.integer :user_id, index: true, foreign_key: true
t.integer :vote_val
end
# add_index :vote_on_issues, [:issue_id, :user_id], unique: true
Expand Down

0 comments on commit 9e22fd9

Please sign in to comment.