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
4b06d82f
Commit
4b06d82f
authored
Jan 19, 2012
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix noteable key type
parent
e46dab1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
db/migrate/20120119203233_fix_notable_key.rb
db/migrate/20120119203233_fix_notable_key.rb
+5
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20120119203233_fix_notable_key.rb
0 → 100644
View file @
4b06d82f
class
FixNotableKey
<
ActiveRecord
::
Migration
def
change
change_column
:notes
,
:noteable_id
,
:integer
,
:limit
=>
11
end
end
db/schema.rb
View file @
4b06d82f
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended to check this file into your version control system.
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
2012011920
2326
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
2012011920
3233
)
do
create_table
"issues"
,
:force
=>
true
do
|
t
|
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
t
.
string
"title"
...
@@ -54,7 +54,7 @@ ActiveRecord::Schema.define(:version => 20120119202326) do
...
@@ -54,7 +54,7 @@ ActiveRecord::Schema.define(:version => 20120119202326) do
create_table
"notes"
,
:force
=>
true
do
|
t
|
create_table
"notes"
,
:force
=>
true
do
|
t
|
t
.
text
"note"
t
.
text
"note"
t
.
string
"noteable_id"
t
.
integer
"noteable_id"
,
:limit
=>
255
t
.
string
"noteable_type"
t
.
string
"noteable_type"
t
.
integer
"author_id"
t
.
integer
"author_id"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
...
...
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