Permalink
Browse files

updated to use BIGINT for compatibility with PostgreSQL.

Note: update applied to the base members migration since this is
intended as an example application. In a real application, it would
be more appropriate to add a migration to do a change_column
  • Loading branch information...
1 parent ec95520 commit aae605e2c8c02a6e37d1f757d222244310c3036e @tardate committed Sep 11, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 db/migrate/20090628130314_create_members.rb
  2. +1 −1 db/schema.rb
@@ -1,7 +1,7 @@
class CreateMembers < ActiveRecord::Migration
def self.up
create_table :members do |t|
- t.integer :twitter_id
+ t.column :twitter_id, :bigint, :null => false
t.string :screen_name
t.string :token
t.string :secret
View
@@ -12,7 +12,7 @@
ActiveRecord::Schema.define(:version => 20090628130314) do
create_table "members", :force => true do |t|
- t.integer "twitter_id"
+ t.integer "twitter_id", :null => false
t.string "screen_name"
t.string "token"
t.string "secret"

0 comments on commit aae605e

Please sign in to comment.