Commit ed2a9ea2 authored by Nicolas Bouilleaud's avatar Nicolas Bouilleaud Committed by Pierre de La Morinerie
Browse files

Add rails-erd gem

and `rails g erd:install`
parent 82f8c4dc
......@@ -30,6 +30,7 @@ group :development do
gem 'spring'
gem 'spring-watcher-listen'
gem 'annotate'
gem 'rails-erd'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
......
......@@ -78,6 +78,7 @@ GEM
regexp_parser (~> 1.5)
xpath (~> 3.2)
childprocess (3.0.0)
choice (0.2.0)
concurrent-ruby (1.1.7)
crass (1.0.6)
erubi (1.9.0)
......@@ -165,6 +166,11 @@ GEM
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-erd (1.6.0)
activerecord (>= 4.2)
activesupport (>= 4.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
rails-i18n (6.0.0)
......@@ -181,6 +187,9 @@ GEM
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (1.8.2)
rexml (3.2.4)
ruby-graphviz (1.2.5)
rexml
ruby2_keywords (0.0.2)
rubyzip (2.3.0)
sass-rails (6.0.0)
......@@ -247,6 +256,7 @@ DEPENDENCIES
pg
puma
rails
rails-erd
rails-i18n
sass-rails
selenium-webdriver
......
......@@ -9,6 +9,9 @@
* Soit avec sa propre application "Ardoise" sur gitlab.com (`Profile Settings ▸ Applications`)
* Soit avec les mêmes token que l’app de production.
4. `make run` pour lancer le serveur.
5. Installer graphviz en local pour pouvoir faire tourner [rails-erd](https://github.com/voormedia/rails-erd#getting-started). En général:
* `sudo aptitude install graphviz` sur linux
* `brew install graphviz` sur mac
## Configuration de l’app gitlab.com
......
# NOTE: only doing this in development as some production environments (Heroku)
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
# NOTE: to have a dev-mode tool do its thing in production.
if Rails.env.development?
RailsERD.load_tasks
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment