Sha256: 4f56a750bef07c1b3f87049f75eedc43b93c8bc8bbc7c08eda7b6ed7990c9d29
Contents?: true
Size: 540 Bytes
Versions: 11
Compression:
Stored size: 540 Bytes
Contents
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :email, :limit => 128, :null => false t.string :email_hash, :limit => 64, :null => false t.string :password_salt, :limit => 16, :null => true t.string :password_hash, :limit => 64, :null => true t.timestamps end add_index :users, :email, :unique => true, :null => false add_index :users, :email_hash, :unique => true, :null => false end def self.down drop_table :users end end
Version data entries
11 entries across 11 versions & 1 rubygems