diff --git a/.erdconfig b/.erdconfig new file mode 100644 index 0000000..8f3f359 --- /dev/null +++ b/.erdconfig @@ -0,0 +1,3 @@ +title: Progress Test - Models +filetype: svg +warn: false diff --git a/Gemfile b/Gemfile index 6f5d015..a42bb24 100644 --- a/Gemfile +++ b/Gemfile @@ -43,6 +43,7 @@ end group :development do gem "annotate", "~> 3.2" + gem "rails-erd", "~> 1.7" gem "web-console" end diff --git a/Gemfile.lock b/Gemfile.lock index dc530b9..fba12c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -86,6 +86,7 @@ GEM bootsnap (1.12.0) msgpack (~> 1.2) builder (3.2.4) + choice (0.2.0) concurrent-ruby (1.1.10) crass (1.0.6) debug (1.6.1) @@ -227,6 +228,11 @@ GEM rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) + rails-erd (1.7.1) + activerecord (>= 4.2) + activesupport (>= 4.2) + choice (~> 0.2.0) + ruby-graphviz (~> 1.2) rails-html-sanitizer (1.4.3) loofah (~> 2.3) railties (7.0.3.1) @@ -247,6 +253,7 @@ GEM responders (3.0.1) actionpack (>= 5.0) railties (>= 5.0) + rexml (3.2.5) rspec-core (3.11.0) rspec-support (~> 3.11.0) rspec-expectations (3.11.0) @@ -264,6 +271,8 @@ GEM rspec-mocks (~> 3.10) rspec-support (~> 3.10) rspec-support (3.11.0) + ruby-graphviz (1.2.5) + rexml ruby2_keywords (0.0.5) sassc (2.4.0) ffi (~> 1.9) @@ -322,6 +331,7 @@ DEPENDENCIES pg (~> 1.1) puma (~> 5.0) rails (~> 7.0.3, >= 7.0.3.1) + rails-erd (~> 1.7) redis (~> 4.0) rspec-rails (~> 5.1) sassc-rails diff --git a/erd.svg b/erd.svg new file mode 100644 index 0000000..1f5f115 --- /dev/null +++ b/erd.svg @@ -0,0 +1,52 @@ + + + + + + +ProgressTest + +Progress Test - Models + + +m_ActiveAdmin::Comment + +ActiveAdmin::Comment + +author_id +integer (8) +author_type +string +body +text ∗ +namespace +string ∗ +resource_id +integer (8) +resource_type +string + + + +m_User + +User + +email +string ∗ U +encrypted_password +string ∗ +name +string ∗ +remember_created_at +datetime (6,0) +reset_password_sent_at +datetime (6,0) +reset_password_token +string + + +