20170424003227_create_account_domain_blocks.rb 319 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateAccountDomainBlocks < ActiveRecord::Migration[5.0]
  3. def change
  4. create_table :account_domain_blocks do |t|
  5. t.integer :account_id
  6. t.string :domain
  7. t.timestamps
  8. end
  9. add_index :account_domain_blocks, [:account_id, :domain], unique: true
  10. end
  11. end