Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
3503b504
Commit
3503b504
authored
Sep 14, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add members table migration
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e19c1f71
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
db/migrate/20140914113604_add_members_table.rb
db/migrate/20140914113604_add_members_table.rb
+14
-0
db/schema.rb
db/schema.rb
+12
-1
No files found.
db/migrate/20140914113604_add_members_table.rb
0 → 100644
View file @
3503b504
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
db/schema.rb
View file @
3503b504
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201409
07220153
)
do
ActiveRecord
::
Schema
.
define
(
version:
201409
14113604
)
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment