Sha256: a9c5c2bbbae10c5f42665eae099ebffafb6912f45773f370a8cdb99fb6437763
Contents?: true
Size: 560 Bytes
Versions: 9
Compression:
Stored size: 560 Bytes
Contents
class ClearanceCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |t| t.string :email t.string :encrypted_password, :limit => 128 t.string :salt, :limit => 128 t.string :token, :limit => 128 t.datetime :token_expires_at t.boolean :email_confirmed, :default => false, :null => false t.timestamps end add_index :users, [:id, :token] add_index :users, :email add_index :users, :token end def self.down drop_table :users end end
Version data entries
9 entries across 9 versions & 4 rubygems