diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-14 18:18:58 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-14 18:18:58 +0400 |
commit | 3503b504eabf95487fc3fb49df953a7d694da4fe (patch) | |
tree | 67f1c8196299db883b1cd4c1b6f14c21ff0950aa /db | |
parent | e19c1f71d3a6d6b5be638c4f1fb5c9d2401e04be (diff) |
Add members table migration
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20140914113604_add_members_table.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 13 |
2 files changed, 26 insertions, 1 deletions
diff --git a/db/migrate/20140914113604_add_members_table.rb b/db/migrate/20140914113604_add_members_table.rb new file mode 100644 index 00000000000..1738c8dc655 --- /dev/null +++ b/db/migrate/20140914113604_add_members_table.rb @@ -0,0 +1,14 @@ +class AddMembersTable < ActiveRecord::Migration + def change + create_table :members do |t| + t.integer :access_level, null: false + t.integer :source_id, null: false + t.string :source_type, null: false + t.integer :user_id, null: false + t.integer :notification_level, null: false + t.string :type + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index e9b3713557d..b926ca5de9f 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: 20140907220153) do +ActiveRecord::Schema.define(version: 20140914113604) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -130,6 +130,17 @@ ActiveRecord::Schema.define(version: 20140907220153) do add_index "labels", ["project_id"], name: "index_labels_on_project_id", using: :btree + create_table "members", force: true do |t| + t.integer "access_level", null: false + t.integer "source_id", null: false + t.string "source_type", null: false + t.integer "user_id", null: false + t.integer "notification_level", null: false + t.string "type" + t.datetime "created_at" + t.datetime "updated_at" + end + create_table "merge_request_diffs", force: true do |t| t.string "state" t.text "st_commits" |