Sha256: a8b9840915ebaf8dbdf5acd506e216ea3913da730d5a80d8d565fec14638ccb5

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

class TwitterAuthMigration < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string   :login
      t.string   :crypted_password
      t.string   :salt
      
      # Basic info pulled automatically from Twitter. 
      # Feel free to remove any of these columns you don't want.
      t.string  :name
      t.string  :location
      t.text    :description
      t.string  :profile_image_url
      t.string  :url
      t.boolean :protected
      
      t.timestamps
    end
  end
  
  def self.down
    drop_table :users
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mbleigh-twitter-auth-0.0.1 generators/twitter_auth_migration/templates/migration.rb