Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-07-20 17:11:53 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:46:03 +0300
commit895efdfbcfe6082709943767dc8b3ebf399e1283 (patch)
tree49ed0fa9b14194cb779139e846c573289353faab /db
parent8e0c33ed1337e3614fe87d9d0c1eb64af90cc61a (diff)
use text instead of string for db columns
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170613154149_create_gpg_signatures.rb4
-rw-r--r--db/schema.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/20170613154149_create_gpg_signatures.rb b/db/migrate/20170613154149_create_gpg_signatures.rb
index c5478551e11..d1fe4b96a40 100644
--- a/db/migrate/20170613154149_create_gpg_signatures.rb
+++ b/db/migrate/20170613154149_create_gpg_signatures.rb
@@ -13,8 +13,8 @@ class CreateGpgSignatures < ActiveRecord::Migration
t.binary :commit_sha, limit: Gitlab::Database.mysql? ? 20 : nil
t.binary :gpg_key_primary_keyid, limit: Gitlab::Database.mysql? ? 20 : nil
- t.string :gpg_key_user_name
- t.string :gpg_key_user_email
+ t.text :gpg_key_user_name
+ t.text :gpg_key_user_email
t.index :commit_sha
t.index :gpg_key_primary_keyid
diff --git a/db/schema.rb b/db/schema.rb
index 68b5963ec14..6fa8be79156 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -560,8 +560,8 @@ ActiveRecord::Schema.define(version: 20170725145659) do
t.boolean "valid_signature"
t.binary "commit_sha"
t.binary "gpg_key_primary_keyid"
- t.string "gpg_key_user_name"
- t.string "gpg_key_user_email"
+ t.text "gpg_key_user_name"
+ t.text "gpg_key_user_email"
end
add_index "gpg_signatures", ["commit_sha"], name: "index_gpg_signatures_on_commit_sha", using: :btree