summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-03-23 14:48:25 +0200
committerValery Sizov <vsv2711@gmail.com>2015-03-26 13:43:29 +0200
commit60f0ab00ce56207aedd950042aacd3d2769b3e78 (patch)
treeae2ba5697a9e1e646c97ce0d5ff466f5fda43e84 /db
parent5d663b309d0b1c2254a61cc9e2cb3fa03ab8f2bf (diff)
downloadgitlab-ci-60f0ab00ce56207aedd950042aacd3d2769b3e78.tar.gz
events
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150320001810_create_event_table.rb11
-rw-r--r--db/schema.rb10
2 files changed, 20 insertions, 1 deletions
diff --git a/db/migrate/20150320001810_create_event_table.rb b/db/migrate/20150320001810_create_event_table.rb
new file mode 100644
index 0000000..ea4f93c
--- /dev/null
+++ b/db/migrate/20150320001810_create_event_table.rb
@@ -0,0 +1,11 @@
+class CreateEventTable < ActiveRecord::Migration
+ def change
+ create_table :events do |t|
+ t.integer :project_id
+ t.integer :user_id
+ t.text :description
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index a0b007c..d488ce1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20150324001227) do
+ActiveRecord::Schema.define(version: 20150320001810) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -57,6 +57,14 @@ ActiveRecord::Schema.define(version: 20150324001227) do
add_index "commits", ["project_id"], name: "index_commits_on_project_id", using: :btree
add_index "commits", ["sha"], name: "index_commits_on_sha", using: :btree
+ create_table "events", force: true do |t|
+ t.integer "project_id"
+ t.integer "user_id"
+ t.text "description"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
create_table "jobs", force: true do |t|
t.integer "project_id", null: false
t.text "commands"