summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2012-01-19 22:54:05 +0200
committerValery Sizov <vsv2711@gmail.com>2012-01-19 22:54:22 +0200
commit4b06d82f3dbb84d0a3fc4de837186b93f35fc942 (patch)
tree364e399575fb25ae08aafb67a656e65f61094a09
parente46dab1ac5770e436b6088cb893060b09f2559b4 (diff)
downloadgitlab-ce-4b06d82f3dbb84d0a3fc4de837186b93f35fc942.tar.gz
fix noteable key type
-rw-r--r--db/migrate/20120119203233_fix_notable_key.rb5
-rw-r--r--db/schema.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20120119203233_fix_notable_key.rb b/db/migrate/20120119203233_fix_notable_key.rb
new file mode 100644
index 00000000000..9b902d06a2a
--- /dev/null
+++ b/db/migrate/20120119203233_fix_notable_key.rb
@@ -0,0 +1,5 @@
+class FixNotableKey < ActiveRecord::Migration
+ def change
+ change_column :notes, :noteable_id, :integer, :limit => 11
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 7290df2b34f..2fd670757de 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120119202326) do
+ActiveRecord::Schema.define(:version => 20120119203233) do
create_table "issues", :force => true do |t|
t.string "title"
@@ -54,7 +54,7 @@ ActiveRecord::Schema.define(:version => 20120119202326) do
create_table "notes", :force => true do |t|
t.text "note"
- t.string "noteable_id"
+ t.integer "noteable_id", :limit => 255
t.string "noteable_type"
t.integer "author_id"
t.datetime "created_at"