[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7786":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":15,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":27,"discoverSource":28},7786,"rails-erd","voormedia\u002Frails-erd","voormedia","Generate Entity-Relationship Diagrams for Rails applications","http:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002F",null,"Ruby",4080,378,53,2,0,6,29.74,"MIT License",false,"master",true,[],"2026-06-12 02:01:44","Rails ERD - Generate Entity-Relationship Diagrams for Rails applications\n========================================================================\n[![Tests](https:\u002F\u002Fgithub.com\u002Fvoormedia\u002Frails-erd\u002Factions\u002Fworkflows\u002Ftest.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fvoormedia\u002Frails-erd\u002Factions\u002Fworkflows\u002Ftest.yml) [![Code Climate](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fvoormedia\u002Frails-erd\u002Fbadges\u002Fgpa.svg)](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fvoormedia\u002Frails-erd)\n\n[Rails ERD](https:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002F) is a gem that allows you to easily generate a diagram based on your application's Active Record models. The diagram gives an overview of how your models are related. Having a diagram that describes your models is perfect documentation for your application.\n\nThe second goal of Rails ERD is to provide you with a tool to inspect your application's domain model. If you don't like the default output, it is very easy to use the API to build your own diagrams.\n\nRails ERD was created specifically for Rails and works on versions 3.0-5.0. It uses Active Record's built-in reflection capabilities to figure out how your models are associated.\n\n\nPreview\n-------\n\nHere's an example entity-relationship diagram that was generated by Rails ERD:\n\n![Entity-Relationship Diagram](https:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002Fimages\u002Fentity-relationship-diagram.png)\n\nBrowse the [gallery](https:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002Fgallery.html) for more example diagrams.\n\n\nRequirements\n---------------\n\n* Ruby 1.9.3+\n* ActiveRecord 3.x - 5.0.x\n\nGetting started\n---------------\n\nSee the [installation instructions](https:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002Finstall.html) for a complete description of how to install Rails ERD. Here's a summary:\n\n* Install Graphviz 2.22+ ([how?](https:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002Finstall.html)). On macOS with Homebrew run `brew install graphviz`.\n\n* on linux - `sudo apt-get install graphviz`\n\n* Add \u003Ctt>gem 'rails-erd', group: :development\u003C\u002Ftt> to your application's Gemfile\n\n* Run \u003Ctt>bundle exec erd\u003C\u002Ftt>\n\n### Configuration\n\n\nRails ERD has the ability to be configured via the command line or through the use of a YAML file with configuration options set. It will look for this file first at `~\u002F.erdconfig` and then `.\u002F.erdconfig` (which will override any settings in `~\u002F.erdconfig`). The format of the file is as follows (shown here with the default settings used if no `.erdconfig` is found). More information on [customization options](https:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002Fcustomise.html) can be found in Rails ERD's project documentation.\n\n```yaml\nattributes:\n  - content\n  - foreign_keys\n  - inheritance\ndisconnected: true\nfilename: erd\nfiletype: pdf\nindirect: true\ninheritance: false\nmarkup: true\nnotation: simple\norientation: horizontal\npolymorphism: false\nsort: true\nwarn: true\ntitle: sample title\nexclude: null\nonly: null\nonly_recursion_depth: null\nprepend_primary: false\ncluster: false\nsplines: spline\nfonts:\n normal: \"Arial\"\n bold: \"Arial Bold\"\n italic: \"Arial Italic\"\n```\n\nAuto generation\n---------------\n\n* Run \u003Ctt>bundle exec rails g erd:install\u003C\u002Ftt>\n* Run \u003Ctt>bundle exec rails db:migrate\u003C\u002Ftt>, then the diagram is generated\n\nLearn more\n----------\n\nMore information can be found on [Rails ERD's project homepage](https:\u002F\u002Fvoormedia.github.io\u002Frails-erd\u002F).\n\nIf you wish to extend or customise Rails ERD, take a look at the [API documentation](http:\u002F\u002Frubydoc.info\u002Fgithub\u002Fvoormedia\u002Frails-erd\u002Fframes).\n\n\nAbout Rails ERD\n---------------\n\nRails ERD was created by Rolf Timmermans (r.timmermans *at* voormedia.com)\n\nCopyright 2010-2015 Voormedia - [www.voormedia.com](http:\u002F\u002Fwww.voormedia.com\u002F)\n\n\nLicense\n-------\n\nRails ERD is released under the MIT license.\n","voormedia\u002Frails-erd 是一个用于生成 Rails 应用程序实体关系图的 Ruby 宝石。它利用 Active Record 的反射功能来解析模型之间的关联，并以图形化方式展示这些关系，为开发者提供直观的应用文档。此外，该项目还支持通过 API 自定义生成的图表样式，满足不同需求。适用于需要清晰理解或展示数据库结构及其模型间关系的 Rails 项目场景中，特别是在开发、维护和团队协作过程中。支持 Rails 3.0 至 5.0 版本，要求 Ruby 1.9.3 及以上版本以及相应版本的 ActiveRecord。","2026-06-11 03:14:21","top_language"]