discourse/db/migrate/20200717193118_create_allow...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
438 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateAllowedPmUsers < ActiveRecord::Migration[6.0]
def change
create_table :allowed_pm_users do |t|
t.integer :user_id, null: false
t.integer :allowed_pm_user_id, null: false
t.timestamps null: false
end
add_index :allowed_pm_users, [:user_id, :allowed_pm_user_id], unique: true
add_index :allowed_pm_users, [:allowed_pm_user_id, :user_id], unique: true
end
end