class DeviseCreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users) do |t|
      t.string :name
      t.string :login
      t.string :email
      t.timestamps
    end

    add_index :users, :login, :unique => true
  end

  def self.down
    drop_table :users
  end
end

class DeviseCreateUsers < ActiveRecord::Migration
  def self.up
    create_table(:users) do |t|
      t.string :name
      t.string :login
      t.string :email
      t.oauth2_authenticatable
      t.timestamps
    end

    add_index :users, :login, :unique => true
    add_index :users, :oauth2_uid, :unique => true
  end

  def self.down
    drop_table :users
  end
end

Revert "Removed devise oauth in migration"
Revert "Removed devise oauth in migration"

This reverts commit 75c624fa8c00605396ba85ae33b7a05eecf1167c.
