rails_schema_cleaner 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcc1e8a0e8351e3fab096c5ed0e38758cd998cb7472f31e3b7c03b7adcb9d3af
4
- data.tar.gz: cd21d7ec9586ce7345ce3fad4885755e544a43fdd0ebeea0b9bf36cb2e936724
3
+ metadata.gz: 8d935645b1c831455ed96c029ad088dd165f9c905dd0badb91e1cb2a700b161b
4
+ data.tar.gz: c3642c20f69bc410aa3ea12b51526066bc80b1b5a6e9c8e5005c8bda5341eeb4
5
5
  SHA512:
6
- metadata.gz: 0f327bc26e101aa549cac433c8cca3971920bcaaf8bd9f4f7ae459b64791ae8122b09562a90a0ef0ea30f163fe03fa332c62803fc636ac3986fcd07b0f07a489
7
- data.tar.gz: aeca7ea631cae4a193479803099ee38adab348c7f7235fda3946bf82722ec1f36d088953d0fb0e2d47043cf6a7f2370a45a9152a36395816008a7ca6d0635dea
6
+ metadata.gz: 616bd17acb6bbbc91017b7c43826181e464d8829567807bf3a6d663b1cfaa4cb10bba088dc6a11a6a55d3f3b3a305b8db2c3e73800bcd3e1f6db09c86f368b43
7
+ data.tar.gz: dd0f8ec0f4069f72667a3963155ebb9b3a0bb7069a1a48ccea32975aa36d83bdd21c14a531a6d8789e422c91782383dd23e12304248f3aa20474339021cf4c27
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ - Fix migration file spacing
4
+
3
5
  ## [0.1.0] - 2025-02-28
4
6
 
5
7
  - Initial release
8
+ - Detects orphaned tables in Rails project
9
+ - Creates a migration to delete orphaned tables
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsSchemaCleaner
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -25,7 +25,7 @@ module RailsSchemaCleaner
25
25
  # Define the migration class with the correct format
26
26
  migration_class = "ActiveRecord::Migration[#{Rails::VERSION::MAJOR}.0]"
27
27
 
28
- migration_content = <<-RUBY
28
+ migration_content = <<~RUBY
29
29
  class DropOrphanedTables < #{migration_class}
30
30
  def change
31
31
  #{tables_to_drop.map { |t| "drop_table :#{t}" }.join("\n ")}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_schema_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hassan Murtaza