Class: CreateAuthorizations
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateAuthorizations
- Defined in:
- lib/templates/db/migrate/20101008210657_create_authorizations.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 |
# File 'lib/templates/db/migrate/20101008210657_create_authorizations.rb', line 12 def self.down drop_table :authorizations end |
.up ⇒ Object
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. end end |