Sha256: 905bc5e630476929f16450fa277db6662afd055a9b083d357997d8f09519e9a9

Contents?: true

Size: 312 Bytes

Versions: 16

Compression:

Stored size: 312 Bytes

Contents

class AddUserAuthenticationToken < ActiveRecord::Migration
  def change
    add_column :users, :authentication_token, :string
    add_index  :users, :authentication_token, :unique => true
  end

  def down
    remove_index  :users, :authentication_token
    remove_column :users, :authentication_token
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
introspective_grape-0.6.1 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.5.7 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.5.6 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.5.5 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.5.4 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.5.2 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.5.0 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.4.3 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.4.2 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.4.1 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.4.0 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.3.9 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.3.7 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.3.6 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.3.5 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
introspective_grape-0.3.3 spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb