Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow storing titles and authors in copies longer

than 255 characters.
  • Loading branch information...
commit 9772786de6830598e40d670fc550990df9de92a6 1 parent 8073fe9
Thomas Mayfield authored
6 db/migrate/20121202230652_change_copy_varchars_to_text.rb
View
@@ -0,0 +1,6 @@
+class ChangeCopyVarcharsToText < ActiveRecord::Migration
+ def change
+ change_column :copies, :title, :text
+ change_column :copies, :author, :text
+ end
+end
6 db/schema.rb
View
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20121104182855) do
+ActiveRecord::Schema.define(:version => 20121202230652) do
create_table "books", :force => true do |t|
t.string "title"
@@ -26,8 +26,8 @@
end
create_table "copies", :force => true do |t|
- t.string "title"
- t.string "author"
+ t.text "title"
+ t.text "author"
t.string "call_number"
t.integer "book_id"
t.string "status"
Please sign in to comment.
Something went wrong with that request. Please try again.