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
Tatuya Kamada
gitlab-ce
Commits
42834095
Commit
42834095
authored
Mar 16, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change target_id to null on todos
parent
8dfa0a76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
...grate/20160316192622_change_target_id_to_null_on_todos.rb
+5
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20160316192622_change_target_id_to_null_on_todos.rb
0 → 100644
View file @
42834095
class
ChangeTargetIdToNullOnTodos
<
ActiveRecord
::
Migration
def
change
change_column_null
:todos
,
:target_id
,
true
end
end
db/schema.rb
View file @
42834095
...
@@ -867,7 +867,7 @@ ActiveRecord::Schema.define(version: 20160316204731) do
...
@@ -867,7 +867,7 @@ ActiveRecord::Schema.define(version: 20160316204731) do
create_table
"todos"
,
force: :cascade
do
|
t
|
create_table
"todos"
,
force: :cascade
do
|
t
|
t
.
integer
"user_id"
,
null:
false
t
.
integer
"user_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
integer
"target_id"
,
null:
false
t
.
integer
"target_id"
t
.
string
"target_type"
,
null:
false
t
.
string
"target_type"
,
null:
false
t
.
integer
"author_id"
t
.
integer
"author_id"
t
.
integer
"action"
,
null:
false
t
.
integer
"action"
,
null:
false
...
...
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