discourse/db/migrate/20130724201552_create_blocked_emails.rb

Failed to ignore revisions in .git-blame-ignore-revs.

15 lines
405 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateBlockedEmails < ActiveRecord::Migration[4.2]
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
2017-08-07 23:48:36 +08:00
t.timestamps null: false
end
add_index :blocked_emails, :email, unique: true
end
end