mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
334e21a03a
This reverts commit 1c7559380c
.
12 lines
335 B
Ruby
12 lines
335 B
Ruby
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
|