Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 18 lines (15 sloc) 0.415 kb
c5fcac9 @qrush Upgrading clearance to 0.8.2
qrush authored
1 class ClearanceUpdateUsers < ActiveRecord::Migration
2 def self.up
3 change_table(:users) do |t|
4 t.string :confirmation_token, :limit => 128
5 t.string :remember_token, :limit => 128
6 end
7
8 add_index :users, [:id, :confirmation_token]
9 add_index :users, :remember_token
10 end
11
12 def self.down
13 change_table(:users) do |t|
14 t.remove :confirmation_token,:remember_token
15 end
16 end
17 end
Something went wrong with that request. Please try again.