summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-17 12:42:40 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-17 12:42:40 +0200
commit86a8796b1322879d01e9cea8fb728458e0e328cb (patch)
tree4b35e22f09d2b64018cd8bd0ed039ad99794e3fa /db
parent5ac57305477ed90bf416b3c795516e9b9135bf5b (diff)
downloadgitlab-ce-86a8796b1322879d01e9cea8fb728458e0e328cb.tar.gz
Create EmailsOnPushService model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20131217102743_add_recipients_to_service.rb5
-rw-r--r--db/schema.rb32
2 files changed, 23 insertions, 14 deletions
diff --git a/db/migrate/20131217102743_add_recipients_to_service.rb b/db/migrate/20131217102743_add_recipients_to_service.rb
new file mode 100644
index 00000000000..9695c251352
--- /dev/null
+++ b/db/migrate/20131217102743_add_recipients_to_service.rb
@@ -0,0 +1,5 @@
+class AddRecipientsToService < ActiveRecord::Migration
+ def change
+ add_column :services, :recipients, :text
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 77d245913e2..f6a2bc0ebc3 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,10 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20131214224427) do
+ActiveRecord::Schema.define(version: 20131217102743) do
+
+ # These are extensions that must be enabled in order to support this database
+ enable_extension "plpgsql"
create_table "broadcast_messages", force: true do |t|
t.text "message", null: false
@@ -94,20 +97,20 @@ ActiveRecord::Schema.define(version: 20131214224427) do
add_index "keys", ["user_id"], name: "index_keys_on_user_id", using: :btree
create_table "merge_requests", force: true do |t|
- t.string "target_branch", null: false
- t.string "source_branch", null: false
- t.integer "source_project_id", null: false
+ t.string "target_branch", null: false
+ t.string "source_branch", null: false
+ t.integer "source_project_id", null: false
t.integer "author_id"
t.integer "assignee_id"
t.string "title"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- t.text "st_commits", limit: 2147483647
- t.text "st_diffs", limit: 2147483647
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ t.text "st_commits"
+ t.text "st_diffs"
t.integer "milestone_id"
t.string "state"
t.string "merge_status"
- t.integer "target_project_id", null: false
+ t.integer "target_project_id", null: false
t.integer "iid"
t.text "description"
end
@@ -219,20 +222,21 @@ ActiveRecord::Schema.define(version: 20131214224427) do
t.string "project_url"
t.string "subdomain"
t.string "room"
+ t.text "recipients"
end
add_index "services", ["project_id"], name: "index_services_on_project_id", using: :btree
create_table "snippets", force: true do |t|
t.string "title"
- t.text "content", limit: 2147483647
- t.integer "author_id", null: false
+ t.text "content"
+ t.integer "author_id", null: false
t.integer "project_id"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
t.string "file_name"
t.datetime "expires_at"
- t.boolean "private", default: true, null: false
+ t.boolean "private", default: true, null: false
t.string "type"
end