devise works well now! with foreign keys.