Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Craig: Changed phone number data type from float to string

  • Loading branch information...
commit 7d5ddcc4a33535279870a23dede3faa877c64bf4 1 parent 6d0e4a0
@cwattrus cwattrus authored
View
9 db/migrate/20120420110045_change_phone_number_float_to_string.rb
@@ -0,0 +1,9 @@
+class ChangePhoneNumberFloatToString < ActiveRecord::Migration
+ def up
+ change_column :phone_numbers, :number, :string
+ end
+
+ def down
+ change_column :phone_numbers, :number, :integer
+ end
+end
View
4 db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120417181050) do
+ActiveRecord::Schema.define(:version => 20120420110045) do
create_table "people", :force => true do |t|
t.datetime "created_at", :null => false
@@ -19,7 +19,7 @@
end
create_table "phone_numbers", :force => true do |t|
- t.float "number"
+ t.string "number"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
Please sign in to comment.
Something went wrong with that request. Please try again.