Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a possibility to find a migration that added specific change into schema.rb #94

Open
ka8725 opened this issue Aug 19, 2024 · 0 comments

Comments

@ka8725
Copy link
Member

ka8725 commented Aug 19, 2024

When I inspect a db/schema.rb that has some diff detected by git I have no idea where the diff comes from. E.g.

diff --git a/api/db/schema.rb b/api/db/schema.rb
index 5da3a51e6..eb2a2c502 100644
--- a/api/db/schema.rb
+++ b/api/db/schema.rb
@@ -168,6 +168,7 @@ ActiveRecord::Schema.define(version: 2024_08_01_044645) do
     t.string "content_type"
     t.datetime "created_at", null: false
     t.bigint "customer_id"
+    t.integer "distributor_id"
     t.string "file"
     t.string "file_id"
     t.string "filename"
@@ -1059,7 +1060,7 @@ ActiveRecord::Schema.define(version: 2024_08_01_044645) do

   create_table "reactors", force: :cascade do |t|
     t.datetime "created_at", precision: 6, null: false
-    t.integer "irradiation_week", default: 0, null: false
+    t.integer "irradiation_week"
     t.string "name"
     t.integer "qty_per_container"
     t.jsonb "reactor_commitments_summary", default: []
@@ -1425,4 +1426,4 @@ ActiveRecord::Schema.define(version: 2024_08_01_044645) do
   add_foreign_key "team_members", "customers"
   add_foreign_key "team_members", "portal_users"
   add_foreign_key "users", "regions"

Research a possibility to add a functionality into the gem so that I can easily find which migration(s) added this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant