mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Can create warnings for users via PM
This commit is contained in:
12
db/migrate/20140905171733_create_warnings.rb
Normal file
12
db/migrate/20140905171733_create_warnings.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateWarnings < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :warnings do |t|
|
||||
t.references :topic, null: false
|
||||
t.references :user, null: false
|
||||
t.integer :created_by_id, null: false
|
||||
t.timestamps
|
||||
end
|
||||
add_index :warnings, :user_id
|
||||
add_index :warnings, :topic_id, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user