Drizzle-kit not detecting views ?

Hi, I've created a view in the same file as my regular table:
export const userLevelsWithRank = pgView('user_levels_with_rank').as(
  (qb) =>
      qb
      .select({
          rank: sql<number>`rank() over (order by "level" desc, "xp" desc)`.as('rank')
      })
      .from(userLevels)
);

But drizzle kit says that no changes were made.
No schema changes, nothing to migrate ๐Ÿ˜ด

Did I miss something ?
Was this page helpful?