Class: CreateAuthorizations

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/templates/db/migrate/20101008210657_create_authorizations.rb

Class Method Summary collapse

Class Method Details

.downObject



12
13
14
# File 'lib/templates/db/migrate/20101008210657_create_authorizations.rb', line 12

def self.down
  drop_table :authorizations
end

.upObject



2
3
4
5
6
7
8
9
10
# File 'lib/templates/db/migrate/20101008210657_create_authorizations.rb', line 2

def self.up
  create_table :authorizations do |t|
    t.string :provider
    t.string :uid
    t.integer :user_id

    t.timestamps
  end
end