mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
13 lines
357 B
Ruby
13 lines
357 B
Ruby
|
class CreateBlockedEmails < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :blocked_emails do |t|
|
||
|
t.string :email, null: false
|
||
|
t.integer :action_type, null: false
|
||
|
t.integer :match_count, null: false, default: 0
|
||
|
t.datetime :last_match_at
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :blocked_emails, :email, unique: true
|
||
|
end
|
||
|
end
|