* VRFS-259: beta signup

This commit is contained in:
Seth Call 2013-03-14 23:22:00 -05:00
parent b502877720
commit 080ba4fef7
4 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,4 @@
-- make your life easy and use this name for your encrypted password
ALTER TABLE users RENAME COLUMN password_digest TO encrypted_password;
DROP TABLE admin_users;

View File

@ -0,0 +1 @@
ALTER TABLE users ALTER gender DROP DEFAULT;

12
up/invited_users.sql Normal file
View File

@ -0,0 +1,12 @@
-- a table to manage invitations from one user to another
CREATE TABLE invited_users (
id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(),
sender_id VARCHAR(64) REFERENCES users(id) ON DELETE CASCADE,
autofriend BOOLEAN NOT NULL,
email VARCHAR(256) NOT NULL,
invitation_code VARCHAR(256) UNIQUE NOT NULL,
accepted BOOLEAN DEFAULT FALSE,
note text,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

1
up/subscribe_email.sql Normal file
View File

@ -0,0 +1 @@
ALTER TABLE users ADD COLUMN subscribe_email BOOLEAN DEFAULT false;