2018-11-13 07:27:31 +00:00
|
|
|
class CreatePagesDomain < ActiveRecord::Migration[4.2]
|
2017-02-02 17:28:53 +00:00
|
|
|
DOWNTIME = false
|
|
|
|
|
2016-02-10 11:07:46 +00:00
|
|
|
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
|