violet_rails icon indicating copy to clipboard operation
violet_rails copied to clipboard

public schema is not included as a subdomain

Open donrestarone opened this issue 3 years ago • 0 comments

when Subdomain.all is called, it should include the public schema (created by default, mapped to the apex domain)

(byebug) Subdomain.all
#<ActiveRecord::Relation [#<Subdomain id: 1, name: "root", deleted_at: nil, created_at: "2022-01-19 13:59:56.942081000 +0000", updated_at: "2022-01-19 13:59:56.942081000 +0000", html_title: "lvh.me:5250", blog_title: "lvh.me:5250", blog_html_title: "lvh.me:5250", forum_title: "lvh.me:5250", forum_html_title: "lvh.me:5250", description: nil, keywords: nil, forum_enabled: true, blog_enabled: true, allow_user_self_signup: true, forum_is_private: false, purge_visits_every: "never", analytics_report_frequency: "never", analytics_report_last_sent: nil>]>

the above list should include the public schema/subdomain. This bug was discovered when Violet Rails was used in a custom app

donrestarone avatar Feb 06 '22 11:02 donrestarone