20160210105555_create_pages_domain.rb 380 Bytes
Newer Older
1
class CreatePagesDomain < ActiveRecord::Migration[4.2]
2 3
  DOWNTIME = false

Kamil Trzcinski's avatar
Kamil Trzcinski committed
4 5 6 7 8 9 10 11 12 13 14 15 16
  def change
    create_table :pages_domains do |t|
      t.integer :project_id
      t.text    :certificate
      t.text    :encrypted_key
      t.string  :encrypted_key_iv
      t.string  :encrypted_key_salt
      t.string  :domain
    end

    add_index :pages_domains, :domain, unique: true
  end
end