canvas-lms/db/migrate/20121017165813_add_access_t...

15 lines
390 B
Ruby

class AddAccessTokenCryptedToken < ActiveRecord::Migration
tag :predeploy
def self.up
add_column :access_tokens, :crypted_token, :string
add_column :access_tokens, :token_hint, :string
add_index :access_tokens, [:crypted_token], :unique => true
end
def self.down
remove_column :access_tokens, :crypted_token
remove_column :access_tokens, :token_hint
end
end