Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Expand size of unit.answer field

  • Loading branch information...
commit 304fff6c0ed9ab964711e802d47183b14eee1f28 1 parent c9d7d3e
@rwdaigle authored
Showing with 13 additions and 3 deletions.
  1. +10 −0 db/migrate/20120601202329_expand_answer_field.rb
  2. +3 −3 db/schema.rb
View
10 db/migrate/20120601202329_expand_answer_field.rb
@@ -0,0 +1,10 @@
+class ExpandAnswerField < ActiveRecord::Migration
+
+ def up
+ change_column(:units, :answer, :text)
+ end
+
+ def down
+ change_column(:units, :answer, :varchar, :limit => 255)
+ end
+end
View
6 db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120523005513) do
+ActiveRecord::Schema.define(:version => 20120601202329) do
create_table "associations", :force => true do |t|
t.integer "user_id", :null => false
@@ -78,9 +78,9 @@
create_table "units", :force => true do |t|
t.string "question", :null => false
- t.string "answer"
+ t.text "answer"
t.integer "subject_id", :null => false
- t.integer "position", :null => false
+ t.integer "position"
t.datetime "created_at"
t.datetime "updated_at"
end
Please sign in to comment.
Something went wrong with that request. Please try again.