You not only need to learn your scales, you need to learn how to build a scale! Using the formula,
Root, t-t-st-t-t-t-st, you will be able to figure all the scales, and be able to use and learn them.
Root means the note you want to start the scale in and play in. T, means 1 tone. A tone is two frets on the guitar neck. ST, means semitone. A semitone is One Fret on the guitar neck.
Example: E scale is, E, F#, G#,A, B, C#,D#, and back to E. If you use the formula R,T,T,ST,T,T,T,ST
You will be able to figure out any scale with some slight transposition!!
Wish you well in your musical endeavors.
Jim