Permalink
Browse files

flickr_id integer size 8, for 8 byte integers

  • Loading branch information...
1 parent b80e237 commit 3a8e55761cac3035fbab0dd4b8ae860e4a9879c3 @micahbrich committed Dec 24, 2009
Showing with 11 additions and 2 deletions.
  1. +9 −0 db/migrate/20091224144719_add_bigint_to_posts.rb
  2. +2 −2 db/schema.rb
@@ -0,0 +1,9 @@
+class AddBigintToPosts < ActiveRecord::Migration
+ def self.up
+ change_column :posts, :flickr_id, :integer, :limit => 8
+ end
+
+ def self.down
+ change_column :posts, :flickr_id, :integer, :limit => 4
+ end
+end
View
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20090130051637) do
+ActiveRecord::Schema.define(:version => 20091224144719) do
create_table "comments", :force => true do |t|
t.string "name"
@@ -36,7 +36,7 @@
t.string "image"
t.string "thumb"
t.text "description"
- t.integer "flickr_id"
+ t.integer "flickr_id", :limit => 8
t.datetime "created_at"
t.datetime "updated_at"
end

0 comments on commit 3a8e557

Please sign in to comment.