• Stars
    star
    166
  • Rank 227,748 (Top 5 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 12 years ago
  • Updated 11 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
869
star
2

rails_standards

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

universalid

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

turbo_boost-commands

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

turbo_boost-streams

Take full control of the DOM with Turbo Streams
HTML
268
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
139
star
8

turbo_boost-elements

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

stimulus_reflex_expo

StimulusReflex demos
Ruby
90
star
10

debounced

Debounced versions of standard DOM events
JavaScript
80
star
11

composite_cache_store

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

goldmine

Extract a wealth of information from lists
Ruby
75
star
13

stimulus_controllers

[WIP] Stimulus controller library common enough to span multiple projects
JavaScript
58
star
14

chatter

Build a twitter clone in 10 mins with Rails, CableReady, and StimulusReflex
Ruby
53
star
15

tag_columns

Fast & simple Rails ActiveRecord model tagging using PostgreSQL's Array datatype
Ruby
52
star
16

stimulus_reflex_todomvc

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

bg

Non-blocking ActiveRecord method invocation
Ruby
48
star
18

pipe_envy

Elixir style pipe operator for Ruby
Ruby
46
star
19

hero

Business process modeling for the Rubyist
Ruby
39
star
20

polysearch

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

coast

RESTful behavior for Rails controllers
Ruby
28
star
22

field_mapper

Data mapping & transformation
Ruby
25
star
23

pry-test

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

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
25

credentials_demo

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

active_storage_svg_sanitizer

Sanitize ActiveStorage SVG uploads
Ruby
20
star
27

stimulus_todomvc

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

perm

Simple authorization/permission management in Ruby
Ruby
14
star
29

coin

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

grumpy_old_man

Asserts for RSpec
Ruby
13
star
31

render_later

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

trix_embed

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

docker-ruby-rbx

Trusted Docker Image for Rubinius Ruby
Shell
11
star
34

ellington

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

dotfiles

Lua
9
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

turbo_boost-devtools

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

containers

Ruby
7
star
40

roleup

Simple role management
Ruby
6
star
41

legion

Parallel processing made easy
Ruby
6
star
42

kvn

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

apex-doc

Oracle Application Express (APEX) Quick Reference
4
star
44

bighorn

A standardized interface for event tracking
JavaScript
4
star
45

docker-images

Shell
4
star
46

private-docker-registry

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

todo

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

foreign_key_migrations

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

github_search

Ruby
3
star
50

docker-nodejs

Docker image for NodeJS
Shell
2
star
51

footing

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

coin_rack

A REST API for Coin
Ruby
2
star
53

fig

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

self_renderer

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

docker-ruby-mri

Trusted Docker Image for MRI Ruby
Shell
1
star
56

model_definition_tester

Powerful schema and validations testing.
Ruby
1
star
57

string_extensions

Extensions and monkey patches for String.
Ruby
1
star
58

looker

Hash based enumerated types (ENUMS)
Ruby
1
star
59

cable_ready_todomvc

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

safe_migrations

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

hopsoft.github.io

Web pages for Hopsoft on Github.
JavaScript
1
star
62

docker

Docker images for development and other environments
Dockerfile
1
star
63

active_record_addons

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

hustle

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

raml_doc

Generate API documentation from RAML files
HTML
1
star
66

stimulus_reflex_client

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

han

Hypermedia API Navigation spec
1
star
68

docker-postgres

Trusted Docker Image for PostgreSQL
Shell
1
star