debian-mirror-gitlab/db/migrate/20160210105555_create_pages_domain.rb

17 lines
380 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
class CreatePagesDomain < ActiveRecord::Migration[4.2]
2017-08-17 22:00:37 +05:30
DOWNTIME = false
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