Sha256: 24e955207434f1c419cd7774fa2694287361559112d6c0bf7a4caac08a83748a
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
class AddAuthenticationTokenToUsers < ActiveRecord::Migration def up add_column :users, :authentication_token, :string add_index :users, :authentication_token User.unscoped { User.find_each(&:ensure_authentication_token) } end def down remove_index :users, :authentication_token remove_column :users, :authentication_token end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | db/migrate/20120826022643_add_authentication_token_to_users.rb |