mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
15 lines
361 B
Ruby
Vendored
15 lines
361 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class CreateAssignments < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :assignments do |t|
|
|
t.integer :topic_id, null: false
|
|
t.integer :assigned_to_id, null: false
|
|
t.integer :assigned_by_user_id, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :assignments, :topic_id, unique: true
|
|
end
|
|
end
|