diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-10 12:07:46 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-01-31 22:53:57 +0000 |
commit | 6e99226cca41f36d92c4ccb2cd398d2256091adc (patch) | |
tree | fc3cc5262537f33d46b2407970a6a7b6a5cef69d /db | |
parent | f034f6b3ec5dc8b72f43c954ddb34bae037be254 (diff) | |
download | gitlab-ce-6e99226cca41f36d92c4ccb2cd398d2256091adc.tar.gz |
Added PagesDomain
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160209125808_add_pages_custom_domain_to_projects.rb | 10 | ||||
-rw-r--r-- | db/migrate/20160210105555_create_pages_domain.rb | 14 |
2 files changed, 14 insertions, 10 deletions
diff --git a/db/migrate/20160209125808_add_pages_custom_domain_to_projects.rb b/db/migrate/20160209125808_add_pages_custom_domain_to_projects.rb deleted file mode 100644 index 13b42d18a7a..00000000000 --- a/db/migrate/20160209125808_add_pages_custom_domain_to_projects.rb +++ /dev/null @@ -1,10 +0,0 @@ -class AddPagesCustomDomainToProjects < ActiveRecord::Migration - def change - add_column :projects, :pages_custom_certificate, :text - add_column :projects, :encrypted_pages_custom_certificate_key, :text - add_column :projects, :encrypted_pages_custom_certificate_key_iv, :string - add_column :projects, :encrypted_pages_custom_certificate_key_salt, :string - add_column :projects, :pages_custom_domain, :string, unique: true - add_column :projects, :pages_redirect_http, :boolean, default: false, null: false - end -end diff --git a/db/migrate/20160210105555_create_pages_domain.rb b/db/migrate/20160210105555_create_pages_domain.rb new file mode 100644 index 00000000000..9af206143bd --- /dev/null +++ b/db/migrate/20160210105555_create_pages_domain.rb @@ -0,0 +1,14 @@ +class CreatePagesDomain < ActiveRecord::Migration + 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 |