Added migrations and fixed Registration.

Signed-off-by: 'kiyanov' <'kiyanov.alex@gmail.com'>