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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
eabad632
Commit
eabad632
authored
Jan 29, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
ac70bdcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/index_status.rb
app/models/index_status.rb
+1
-1
db/migrate/20160129075828_create_index_statuses.rb
db/migrate/20160129075828_create_index_statuses.rb
+2
-2
No files found.
app/models/index_status.rb
View file @
eabad632
class
IndexStatus
<
ActiveRecord
::
Base
belongs_to
:project
validates
:project_id
,
uniqueness:
true
validates
:project_id
,
uniqueness:
true
,
presense:
true
end
db/migrate/20160129075828_create_index_statuses.rb
View file @
eabad632
class
CreateIndexStatuses
<
ActiveRecord
::
Migration
def
change
create_table
:index_statuses
do
|
t
|
t
.
integer
:project_id
t
.
integer
:project_id
,
null:
false
t
.
datetime
:indexed_at
t
.
text
:note
t
.
string
:last_commit
...
...
@@ -9,6 +9,6 @@ class CreateIndexStatuses < ActiveRecord::Migration
t
.
timestamps
null:
false
end
add_index
:index_statuses
,
:project_id
add_index
:index_statuses
,
:project_id
,
unique:
true
end
end
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