Commit 4b06d82f3dbb84d0a3fc4de837186b93f35fc942

Authored by Valery Sizov
1 parent e46dab1a

fix noteable key type

db/migrate/20120119203233_fix_notable_key.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +class FixNotableKey < ActiveRecord::Migration
  2 + def change
  3 + change_column :notes, :noteable_id, :integer, :limit => 11
  4 + end
  5 +end
... ...
db/schema.rb
... ... @@ -11,7 +11,7 @@
11 11 #
12 12 # It's strongly recommended to check this file into your version control system.
13 13  
14   -ActiveRecord::Schema.define(:version => 20120119202326) do
  14 +ActiveRecord::Schema.define(:version => 20120119203233) do
15 15  
16 16 create_table "issues", :force => true do |t|
17 17 t.string "title"
... ... @@ -54,7 +54,7 @@ ActiveRecord::Schema.define(:version =&gt; 20120119202326) do
54 54  
55 55 create_table "notes", :force => true do |t|
56 56 t.text "note"
57   - t.string "noteable_id"
  57 + t.integer "noteable_id", :limit => 255
58 58 t.string "noteable_type"
59 59 t.integer "author_id"
60 60 t.datetime "created_at"
... ...