Class: SimpleMobileOauthMigration

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/templates/migration.rb', line 2

def change
  create_table :identities do |t|
    t.integer :identifiable_id
    t.string :identifiable_type
    t.string :image
    t.string :uid,       null: false
    t.string :provider,  null: false
    t.text :info

    t.timestamps
  end
end