Displaying 1 result from an estimated 1 matches for "activation_key_hash".
2005 Dec 29
7
belongs_to causing NoMethodError exceptions ... ?
...TE CASCADE ON DELETE CASCADE
);
DROP TABLE pending_users CASCADE;
CREATE TABLE pending_users (
     id                      SERIAL PRIMARY KEY
,   account_id              int NOT NULL REFERENCES accounts(id) ON  
UPDATE CASCADE ON DELETE CASCADE
,   email_address           text UNIQUE NOT NULL
,   activation_key_hash     text NOT NULL
,   created_at              timestamp with time zone NOT NULL
,   updated_at              timestamp with time zone NOT NULL
,   used                    bool NOT NULL DEFAULT false
);
The class definitions: (yeah, I know -- re-implementing login logic  
yet again is dumb, but thi...