<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Usage on colref</title><link>https://shinagawa-web.github.io/colref/docs/usage/</link><description>Recent content in Usage on colref</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://shinagawa-web.github.io/colref/docs/usage/index.xml" rel="self" type="application/rss+xml"/><item><title>Django</title><link>https://shinagawa-web.github.io/colref/docs/usage/django/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://shinagawa-web.github.io/colref/docs/usage/django/</guid><description>&lt;h1 id="django"&gt;Django&lt;a class="anchor" href="#django"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;See &lt;a href="https://shinagawa-web.github.io/colref/docs/getting-started/"&gt;Getting started&lt;/a&gt; for usage examples.&lt;/p&gt;
&lt;h2 id="modelspy-detection"&gt;models.py detection&lt;a class="anchor" href="#modelspy-detection"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;colref locates &lt;code&gt;models.py&lt;/code&gt; automatically by walking the target directory. All &lt;code&gt;models.py&lt;/code&gt; files found are parsed and merged.&lt;/p&gt;
&lt;p&gt;If the same model name appears in more than one &lt;code&gt;models.py&lt;/code&gt;, colref exits with an error and lists the conflicting files:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;model &amp;#34;User&amp;#34; found in multiple files:
 accounts/models.py
 legacy/models.py
Use --model to disambiguate.&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="skipped-directories"&gt;Skipped directories&lt;a class="anchor" href="#skipped-directories"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The following directories are never scanned:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;.git&lt;/code&gt;, and any directory whose name starts with &lt;code&gt;.&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;__pycache__&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;venv&lt;/code&gt;, &lt;code&gt;.venv&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;migrations&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;node_modules&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="detection-coverage"&gt;Detection coverage&lt;a class="anchor" href="#detection-coverage"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;See &lt;a href="https://shinagawa-web.github.io/colref/docs/detection-patterns/#django"&gt;Detection patterns — Django&lt;/a&gt; for the full per-pattern breakdown.&lt;/p&gt;</description></item><item><title>Rails</title><link>https://shinagawa-web.github.io/colref/docs/usage/rails/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://shinagawa-web.github.io/colref/docs/usage/rails/</guid><description>&lt;h1 id="rails"&gt;Rails&lt;a class="anchor" href="#rails"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;See &lt;a href="https://shinagawa-web.github.io/colref/docs/getting-started/"&gt;Getting started&lt;/a&gt; for usage examples.&lt;/p&gt;
&lt;h2 id="schema-source"&gt;Schema source&lt;a class="anchor" href="#schema-source"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;colref looks for a schema source in the following order:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;db/schema.rb&lt;/code&gt;&lt;/strong&gt; — the standard Rails schema dump (&lt;code&gt;:ruby&lt;/code&gt; format). Present in most projects.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;db/structure.sql&lt;/code&gt;&lt;/strong&gt; — used when &lt;code&gt;config.active_record.schema_format = :sql&lt;/code&gt; (PostgreSQL-specific features such as custom types, partial indexes, or materialized views that &lt;code&gt;schema.rb&lt;/code&gt; cannot represent). Supports PostgreSQL, MySQL, and SQLite quoting styles.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;db/migrate/&lt;/code&gt;&lt;/strong&gt; — fallback when no schema dump is committed. colref replays migration files in timestamp order — &lt;code&gt;create_table&lt;/code&gt;, &lt;code&gt;add_column&lt;/code&gt;, &lt;code&gt;remove_column&lt;/code&gt;, &lt;code&gt;rename_column&lt;/code&gt;, &lt;code&gt;drop_table&lt;/code&gt; — to reconstruct the current schema.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Model and field validation are fully intact regardless of which source is used.&lt;/p&gt;</description></item></channel></rss>