Sha256: 1ab04f53a48235af9373bb185bec2e3da8a277cad8c0490f1b11ea1ae90fc510

Contents?: true

Size: 959 Bytes

Versions: 3

Compression:

Stored size: 959 Bytes

Contents

class SoundcloudAuthMigration < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      
      t.string :soundcloud_id
      t.string :username
      t.string :access_token
      t.string :access_secret

      t.string :remember_token
      t.datetime :remember_token_expires_at

      # This information is automatically kept
      # in-sync at each login of the user. You
      # may remove any/all of these columns.
      
      t.string :plan
      t.string :avatar_url
      t.string :website_title
      t.string :permalink
      t.string :city
      t.string :uri
      t.string :country
      t.string :discogs_name
      t.string :website
      t.string :full_name
      t.integer :followers_count
      t.string :description
      t.string :permalink_url
      t.integer :followings_count
      t.integer :track_count
      t.string :myspace_name

      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
soundcloud-auth-0.1.2 generators/soundcloud_auth/templates/migration.rb
soundcloud-auth-0.1.1 generators/soundcloud_auth/templates/migration.rb
soundcloud-auth-0.1.0 generators/soundcloud_auth/templates/migration.rb