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
Boxiang Sun
gitlab-ce
Commits
1e978649
Commit
1e978649
authored
Apr 10, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add invite data to member.
parent
e6569def
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
db/migrate/20150406133311_add_invite_data_to_member.rb
db/migrate/20150406133311_add_invite_data_to_member.rb
+12
-0
db/schema.rb
db/schema.rb
+6
-1
No files found.
db/migrate/20150406133311_add_invite_data_to_member.rb
0 → 100644
View file @
1e978649
class
AddInviteDataToMember
<
ActiveRecord
::
Migration
def
change
add_column
:members
,
:created_by_id
,
:integer
add_column
:members
,
:invite_email
,
:string
add_column
:members
,
:invite_token
,
:string
add_column
:members
,
:invite_accepted_at
,
:datetime
change_column
:members
,
:user_id
,
:integer
,
null:
true
add_index
:members
,
:invite_token
,
unique:
true
end
end
db/schema.rb
View file @
1e978649
...
@@ -163,15 +163,20 @@ ActiveRecord::Schema.define(version: 20150411180045) do
...
@@ -163,15 +163,20 @@ ActiveRecord::Schema.define(version: 20150411180045) do
t
.
integer
"access_level"
,
null:
false
t
.
integer
"access_level"
,
null:
false
t
.
integer
"source_id"
,
null:
false
t
.
integer
"source_id"
,
null:
false
t
.
string
"source_type"
,
null:
false
t
.
string
"source_type"
,
null:
false
t
.
integer
"user_id"
,
null:
false
t
.
integer
"user_id"
t
.
integer
"notification_level"
,
null:
false
t
.
integer
"notification_level"
,
null:
false
t
.
string
"type"
t
.
string
"type"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
t
.
integer
"created_by_id"
t
.
string
"invite_email"
t
.
string
"invite_token"
t
.
datetime
"invite_accepted_at"
end
end
add_index
"members"
,
[
"access_level"
],
name:
"index_members_on_access_level"
,
using: :btree
add_index
"members"
,
[
"access_level"
],
name:
"index_members_on_access_level"
,
using: :btree
add_index
"members"
,
[
"created_at"
,
"id"
],
name:
"index_members_on_created_at_and_id"
,
using: :btree
add_index
"members"
,
[
"created_at"
,
"id"
],
name:
"index_members_on_created_at_and_id"
,
using: :btree
add_index
"members"
,
[
"invite_token"
],
name:
"index_members_on_invite_token"
,
unique:
true
,
using: :btree
add_index
"members"
,
[
"source_id"
,
"source_type"
],
name:
"index_members_on_source_id_and_source_type"
,
using: :btree
add_index
"members"
,
[
"source_id"
,
"source_type"
],
name:
"index_members_on_source_id_and_source_type"
,
using: :btree
add_index
"members"
,
[
"type"
],
name:
"index_members_on_type"
,
using: :btree
add_index
"members"
,
[
"type"
],
name:
"index_members_on_type"
,
using: :btree
add_index
"members"
,
[
"user_id"
],
name:
"index_members_on_user_id"
,
using: :btree
add_index
"members"
,
[
"user_id"
],
name:
"index_members_on_user_id"
,
using: :btree
...
...
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