From f25875db55aff4afa41c2eabcdd5594bd3fbc2e3 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Thu, 23 Nov 2017 17:52:50 +0100 Subject: [PATCH] Refs #5022 add rails-erd gem and add .erdconfig --- .erdconfig | 23 +++++++++++++++++++++++ Gemfile | 2 ++ Gemfile.lock | 8 ++++++++ 3 files changed, 33 insertions(+) create mode 100644 .erdconfig diff --git a/.erdconfig b/.erdconfig new file mode 100644 index 0000000..ee24963 --- /dev/null +++ b/.erdconfig @@ -0,0 +1,23 @@ +attributes: +- content +- foreign_key +- primary_key +- inheritance +- timestamps +disconnected: true +filename: erd +filetype: png +indirect: true +inheritance: false +markup: true +notation: uml +orientation: vertical +polymorphism: false +sort: true +warn: true +title: sample title +exclude: null +only: null +only_recursion_depth: null +prepend_primary: true +cluster: false diff --git a/Gemfile b/Gemfile index 51c5daa..dd83af9 100644 --- a/Gemfile +++ b/Gemfile @@ -68,6 +68,8 @@ group :development do gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' + gem 'rails-erd' + # Use Capistrano for deployment gem 'capistrano-af83', af83: 'capistrano-af83' diff --git a/Gemfile.lock b/Gemfile.lock index 2f1f22c..3dd7f0d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -88,6 +88,7 @@ GEM rack (>= 1.0.0) rack-test (>= 0.5.4) xpath (~> 2.0) + choice (0.2.0) cocoon (1.2.10) coffee-rails (4.2.2) coffee-script (>= 2.2.0) @@ -182,6 +183,11 @@ GEM rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) + rails-erd (1.5.2) + activerecord (>= 3.2) + activesupport (>= 3.2) + choice (~> 0.2.0) + ruby-graphviz (~> 1.2) rails-html-sanitizer (1.0.3) loofah (~> 2.0) rails-jquery-tags-input (1.0.0) @@ -221,6 +227,7 @@ GEM rspec-mocks (~> 3.6.0) rspec-support (~> 3.6.0) rspec-support (3.6.0) + ruby-graphviz (1.2.3) sass (3.5.1) sass-listen (~> 4.0.0) sass-listen (4.0.0) @@ -308,6 +315,7 @@ DEPENDENCIES rails (~> 5.0.3) rails-assets-bootstrap-sass-official (~> 3.3.0)! rails-assets-footable (~> 2.0.3)! + rails-erd rails-jquery-tags-input rest-client (~> 2.0, >= 2.0.2) rspec-rails (~> 3.5)