fix noteable key type
This commit is contained in:
parent
e46dab1ac5
commit
4b06d82f3d
2 changed files with 7 additions and 2 deletions
5
db/migrate/20120119203233_fix_notable_key.rb
Normal file
5
db/migrate/20120119203233_fix_notable_key.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class FixNotableKey < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column :notes, :noteable_id, :integer, :limit => 11
|
||||||
|
end
|
||||||
|
end
|
|
@ -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 => 20120119202326) do
|
ActiveRecord::Schema.define(:version => 20120119203233) 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
|
||||||
|
|
||||||
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"
|
||||||
|
|
Loading…
Reference in a new issue