Permalink
Browse files

changed column type

  • Loading branch information...
1 parent 2927ba7 commit 0540c59dc4923b162056be9649ef1d23893d66e2 @gaffo committed Oct 29, 2008
Showing with 11 additions and 2 deletions.
  1. +9 −0 db/migrate/20081029055959_change_setting_value_to_text.rb
  2. +2 −2 db/schema.rb
@@ -0,0 +1,9 @@
+class ChangeSettingValueToText < ActiveRecord::Migration
+ def self.up
+ change_column(:settings, :value, :text)
+ end
+
+ def self.down
+ change_column(:settings, :value, :string)
+ end
+end
View
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20081029045900) do
+ActiveRecord::Schema.define(:version => 20081029055959) do
create_table "author_feeds", :force => true do |t|
t.string "name", :null => false
@@ -59,7 +59,7 @@
create_table "settings", :force => true do |t|
t.string "name", :null => false
- t.string "value"
+ t.text "value"
t.datetime "created_at"
t.datetime "updated_at"
end

0 comments on commit 0540c59

Please sign in to comment.