Added devise and migrated db to the first version