• Stars
    star
    161
  • Rank 225,213 (Top 5 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ActiveRecord schema visualization and model organization made easy

ModelProbe

ActiveRecord schema visualization and model organization made easy 🙌

Colorized table info for columns, types, nullables, indexes... and the actual DDL used by the database to create the table. All this and more with ModelProbe!

  1. Get a clear picture of your model's underlying schema with beautiful and informative schema introspection.
  2. Generate model class definitions with a well organized, logical structure.
  3. Create sensible text fixture stubs.

Table of Contents

Quick Start

  1. Add the GEM to your project

    bundle add model_probe

    ModelProbe auto initializes in the Rails development environment.

  2. Use in a Rails console

    # examples for a User model
    User.probe
    User.print_model
    User.print_fixture
  3. Use with Rails (Rake) tasks

    # examples for a User model
    bin/rails model_probe:probe[User]
    bin/rails model_probe:print_model[User]
    bin/rails model_probe:print_fixture[User]

Supported Databases

  • MySQL
  • PostgreSQL
  • SQLite
  • ...more? contributions welcome ;)

Videos

image

Screenshots

Introspect your ActiveRecord models to build a deep understanding of the underlying database structure.

ModelProbe probe

Generate a well organized template for your ActiveRecord model's class definition.

ModelProbe print_model

Create fixture stubs to use in the test suite.

ModelProbe print_fixture

More Repositories

1

docker-graphite-statsd

Docker image for Graphite & Statsd
Python
871
star
2

rails_standards

A developer's guide of practices to follow when building Rails applications.
350
star
3

universalid

Fast, recursive, optimized, URL-Safe serialization for any Ruby object
Ruby
325
star
4

turbo_boost-commands

Commands to help you build robust reactive applications with Rails & Hotwire.
HTML
277
star
5

turbo_boost-streams

Take full control of the DOM with Turbo Streams
HTML
260
star
6

relay

140
star
7

sr_mini

A single file Rails app that will have you running a StimulusReflex and CableReady demo in just 2 steps.
Ruby
138
star
8

stimulus_reflex_expo

StimulusReflex demos
Ruby
90
star
9

turbo_boost-elements

Pre-built easy to use reactive TurboBoost behaviors for Rails/Hotwire apps.
JavaScript
83
star
10

goldmine

Extract a wealth of information from lists
Ruby
75
star
11

composite_cache_store

A composite cache store comprised of layered ActiveSupport::Cache::Store instances
Ruby
74
star
12

job_contracts

Enforceable contracts with test-like assurances for jobs
Ruby
74
star
13

debounced

Debounced versions of standard DOM events
JavaScript
68
star
14

stimulus_controllers

[WIP] Stimulus controller library common enough to span multiple projects
JavaScript
59
star
15

chatter

Build a twitter clone in 10 mins with Rails, CableReady, and StimulusReflex
Ruby
52
star
16

tag_columns

Fast & simple Rails ActiveRecord model tagging using PostgreSQL's Array datatype
Ruby
51
star
17

stimulus_reflex_todomvc

An implementation of TodoMVC using Ruby on Rails, StimulusJS, and StimulusReflex
Ruby
49
star
18

bg

Non-blocking ActiveRecord method invocation
Ruby
47
star
19

pipe_envy

Elixir style pipe operator for Ruby
Ruby
46
star
20

hero

Business process modeling for the Rubyist
Ruby
39
star
21

polysearch

Simplified polymorphic full text + similarity search based on postgres
Ruby
38
star
22

coast

RESTful behavior for Rails controllers
Ruby
28
star
23

field_mapper

Data mapping & transformation
Ruby
25
star
24

pry-test

A small test framework that supports debugging test failures & errors when they happen
Ruby
25
star
25

stimulus_toolbox

Stimulus Toolbox is a catalog of Stimulus projects tracked by popularity and other metrics to help you find the libraries you need to build better applications.
Ruby
22
star
26

credentials_demo

Demo of environment aware Rails encrypted credentials with environment variable override
Ruby
21
star
27

active_storage_svg_sanitizer

Sanitize ActiveStorage SVG uploads
Ruby
20
star
28

perm

Simple authorization/permission management in Ruby
Ruby
15
star
29

stimulus_todomvc

[WIP] An implementation of TodoMVC using Ruby on Rails and StimulusJS
Ruby
14
star
30

coin

An absurdly simple DRb based in-memory cache
Ruby
13
star
31

grumpy_old_man

Asserts for RSpec
Ruby
13
star
32

render_later

Improve the user perceived performance of your Rails app
Ruby
13
star
33

docker-ruby-rbx

Trusted Docker Image for Rubinius Ruby
Shell
11
star
34

trix_embed

Take control over what external links and embedded media is permitted in the Trix editor via copy/paste
JavaScript
10
star
35

ellington

A different take on flow based programming.
Ruby
10
star
36

todomvc

TodoMVC with Rails 7, StimulusReflex, & Import Maps
Ruby
9
star
37

state_jacket

A simple & intuitive state machine
Ruby
9
star
38

dotfiles

Lua
8
star
39

turbo_boost-devtools

Devtools for the Hotwire/Turbo ecosystem (TurboBoost, CableReady, StimulusReflex, etc.)
JavaScript
7
star
40

containers

Ruby
7
star
41

roleup

Simple role management
Ruby
6
star
42

legion

Parallel processing made easy
Ruby
6
star
43

kvn

KVN (Key/Value Notation) converter & parser
Ruby
4
star
44

apex-doc

Oracle Application Express (APEX) Quick Reference
4
star
45

bighorn

A standardized interface for event tracking
JavaScript
4
star
46

docker-images

Shell
4
star
47

private-docker-registry

A project to help you build a private docker registry image.
Shell
4
star
48

todo

WIP: CableReady + StimulusReflex + Web Components todo app demo
Ruby
4
star
49

foreign_key_migrations

Plugin that supports adding and removing foreign key constraints in your migrations.
Ruby
3
star
50

github_search

Ruby
3
star
51

docker-nodejs

Docker image for NodeJS
Shell
2
star
52

footing

An ActiveSupport style utility library that employs delegation instead of monkey patching
Ruby
2
star
53

coin_rack

A REST API for Coin
Ruby
2
star
54

fig

The smart way to manage config settings for Rails and Ruby applications using YAML configuration files.
Ruby
2
star
55

self_renderer

Rails model & object rendering outside the context of web requests
Ruby
1
star
56

docker-ruby-mri

Trusted Docker Image for MRI Ruby
Shell
1
star
57

model_definition_tester

Powerful schema and validations testing.
Ruby
1
star
58

string_extensions

Extensions and monkey patches for String.
Ruby
1
star
59

looker

Hash based enumerated types (ENUMS)
Ruby
1
star
60

cable_ready_todomvc

Rails implementation of TodoMVC using the CableReady GEM instead of a heavy SPA framework
Ruby
1
star
61

safe_migrations

Rails plugin that gracefully handles errors in data migrations and prevents you from getting stuck in between.
Ruby
1
star
62

hopsoft.github.io

Web pages for Hopsoft on Github.
JavaScript
1
star
63

active_record_addons

A small library of helper methods for ActiveRecord
Ruby
1
star
64

docker

Docker images for development and other environments
Dockerfile
1
star
65

hustle

Offload CPU heavy computing to separate processes with Ruby blocks.
Ruby
1
star
66

raml_doc

Generate API documentation from RAML files
HTML
1
star
67

stimulus_reflex_client

WIP: Will eventually replace the JavaScript in the StimulusReflex project
JavaScript
1
star
68

han

Hypermedia API Navigation spec
1
star
69

docker-postgres

Trusted Docker Image for PostgreSQL
Shell
1
star