summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-11-11 15:12:51 +0200
committerValery Sizov <vsv2711@gmail.com>2015-11-19 01:25:27 +0200
commitfd2c0fe446c7f761b845c91307ef8110d869e8e8 (patch)
tree1a2b6c53f6a4c5c24fcb57adad7a2cd115e72623 /db
parent61867abeeccf9e6f65ba38c365d8bdf6b61387f4 (diff)
downloadgitlab-ce-fd2c0fe446c7f761b845c91307ef8110d869e8e8.tar.gz
award emoji
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20151106000015_add_is_award_to_notes.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20151106000015_add_is_award_to_notes.rb b/db/migrate/20151106000015_add_is_award_to_notes.rb
new file mode 100644
index 00000000000..bffe85df3da
--- /dev/null
+++ b/db/migrate/20151106000015_add_is_award_to_notes.rb
@@ -0,0 +1,5 @@
+class AddIsAwardToNotes < ActiveRecord::Migration
+ def change
+ add_column :notes, :is_award, :boolean, default: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 440a33e2006..6c322d33682 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -531,7 +531,7 @@ ActiveRecord::Schema.define(version: 20151116144118) do
t.string "type"
t.string "description", default: "", null: false
t.string "avatar"
- t.boolean "public", default: false
+ t.boolean "visible", default: false
end
add_index "namespaces", ["created_at", "id"], name: "index_namespaces_on_created_at_and_id", using: :btree
@@ -554,6 +554,7 @@ ActiveRecord::Schema.define(version: 20151116144118) do
t.boolean "system", default: false, null: false
t.text "st_diff"
t.integer "updated_by_id"
+ t.boolean "is_award", default: false
end
add_index "notes", ["author_id"], name: "index_notes_on_author_id", using: :btree