yeet_dba 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 32599ee97b8b627e2a093054e31eed282e2141e93569723b98b40357781d1399
4
+ data.tar.gz: 2ee79b2e47bee2c889ccee622be08de60f84d5f8daff92585b1cf52e5880e98c
5
+ SHA512:
6
+ metadata.gz: 8d36e9b4683ea1a9f09238db879e29383ec53fa0e6c28dc4e722738831264833d361a30f2cc6647ad84904e695da4033d7fe0ef5c2a7abc86c59e9a73b30c1f2
7
+ data.tar.gz: 22fb42465caa8ec621aa472924eeb27c5f14e78a5abe9a858a6f48064d19af3651a42f5d65bd7170608bc8b4078cb0baa970204592cb04942d5993925ab84240
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.3
7
+ before_install: gem install bundler -v 1.17.3
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 0.1.0
2
+
3
+ Initial release
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at kevin.coleman@sparkstart.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in yeet_dba.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Kevin Coleman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,75 @@
1
+ ![Foreign Key by Ary Prasetyo from the Noun Project](./yeet_dba.png)
2
+
3
+ # yeet_dba - find missing foreign key constraints
4
+
5
+ yeet_dba scans your rails tables for missing foreign key constraints. If there are no dangling records, it will create a migration to add the foreign key constraints on all the table it is safe.
6
+
7
+ If you have dangling migrations, check the generator logs to see where you have invalid orphaned rows. Orphaned row meaning a row with an id that doesn't exist in the associated table.
8
+
9
+ but [why should I use foreign keys?](https://softwareengineering.stackexchange.com/questions/375704/why-should-i-use-foreign-keys-in-database)
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'yeet_dba'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ ## Usage
24
+
25
+ This probably should run against the production database so you can know if there are dangling records. If there are records with a value, but not the corresponding table does not have an id, then the migration will fail.
26
+
27
+ ```
28
+ $ RAILS_ENV=production rails g yeet_dba:foreign_key_migration
29
+ ```
30
+
31
+ This will create a new migration with for every foreign_key that can safely be added without running into orphaned data errors. We also warn you if active_record models that are missing association declarations (`has_many`, `belongs_to`, etc.)`
32
+
33
+ `WARNING - cannot find association for alternative_housings . supplier_id | suppliers`
34
+
35
+ We also warn if we have tables that don't have existing models attached to them. This can be safe to ignore, because join tables on many to many relations don't need models, but ideally everything should have an AR model backing it.
36
+
37
+ `WARNING - cannot find model for alternative_housings . supplier_id | suppliers`
38
+
39
+ Finnally, if there is a table that we think should have a foreign key constraint, but there are dangling values we warn you against that too.
40
+
41
+ `WARNING - orphaned rows alternative_housings . supplier_id | suppliers`
42
+
43
+ ## Requirements
44
+
45
+ Rails 5.2 (but it may work with 5.0+)
46
+
47
+ ## Road map to v1
48
+
49
+ - [ ] rspec tests
50
+ - [ ] add rake task identify all dangling records
51
+ - [ ] add rake task to automatically nullify or destroy dangling records
52
+ - [ ] run as a rake task
53
+ - [ ] support "soft delete" gems
54
+
55
+
56
+ ## Development
57
+
58
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
59
+
60
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
61
+
62
+ ## Contributing
63
+
64
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kevincolemaninc/yeet_dba. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
65
+
66
+ ## License
67
+
68
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
69
+
70
+ ## Code of Conduct
71
+
72
+ Everyone interacting in the YeetDb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kevincolemaninc/yeet_dba/blob/master/CODE_OF_CONDUCT.md).
73
+
74
+ ## Logo design attribute
75
+ Foreign Key by Ary Prasetyo from the Noun Project
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "yeet_dbaa"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/.DS_Store ADDED
Binary file
@@ -0,0 +1,30 @@
1
+ # require 'generators/yeet_dba/generator_helpers'
2
+
3
+ module YeetDba
4
+ # Custom scaffolding generator
5
+ class ForeignKeyMigrationGenerator < Rails::Generators::Base
6
+ include Rails::Generators::Migration
7
+ source_root File.expand_path('../templates', __FILE__)
8
+ desc "Generates migration for adding foreign key constraints."
9
+
10
+ def copy_migration_and_spec_files
11
+ migration_template "add_foreign_keys_yeet_dba.rb",
12
+ migration_file,
13
+ migration_version: migration_version
14
+ end
15
+
16
+ private
17
+
18
+ def migration_file
19
+ File.join("db/migrate", "add_foreign_keys_yeet_dba.rb")
20
+ end
21
+
22
+ def migration_version
23
+ "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
24
+ end
25
+
26
+ def self.next_migration_number(path)
27
+ Time.now.utc.strftime("%Y%m%d%H%M%S%L")
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,5 @@
1
+ module YeetDba
2
+ module GeneratorHelpers
3
+
4
+ end
5
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddForeignKeysYeetDba < ActiveRecord::Migration<%= migration_version %>
4
+ def change
5
+ <% ::YeetDba::MissingForeignKeys.foreign_keys.each do |foreign_key| %>
6
+ add_foreign_key :<%= foreign_key.table_a %>,
7
+ :<%= foreign_key.table_b %>,
8
+ column: :<%= foreign_key.column %>
9
+ <% end %>
10
+ end
11
+ end
data/lib/yeet_dba.rb ADDED
@@ -0,0 +1,10 @@
1
+ require "yeet_dba/version"
2
+ require "yeet_dba/ar_column"
3
+ require "yeet_dba/ar_table"
4
+ require "yeet_dba/foreign_key"
5
+ require "yeet_dba/missing_foreign_keys"
6
+ require "yeet_dba/verify_data"
7
+
8
+ module YeetDba
9
+ class Error < StandardError; end
10
+ end
data/yeet_dba.gemspec ADDED
@@ -0,0 +1,40 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "./yeet_dba/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "yeet_dba"
8
+ spec.version = YeetDba::VERSION
9
+ spec.authors = ["Kevin Coleman"]
10
+ spec.email = ["kevin.coleman@sparkstart.io"]
11
+
12
+ spec.summary = %q{Generates foreign key constraint migrations for rails databases}
13
+ spec.description = %q{This scan every ActiveRecord model looking for relationships ('has_many', 'belongs_to', etc.) and adds foreign key constraints.}
14
+ spec.homepage = 'http://rubygems.org/gems/yeet_dba'
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/kevincolemaninc/yeet_dba"
22
+ spec.metadata["changelog_uri"] = "https://github.com/kevincolemaninc/yeet_dba/master/CHANGELOG.md"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
+ end
33
+ spec.bindir = "exe"
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ["lib"]
36
+
37
+ spec.add_development_dependency "bundler", "~> 1.17"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ spec.add_development_dependency "rspec", "~> 3.0"
40
+ end
data/yeet_dba.png ADDED
Binary file
@@ -0,0 +1,47 @@
1
+ module YeetDba
2
+ class ArColumn
3
+ attr_accessor :column_name, :table_name, :tables
4
+
5
+ def initialize(column_name:, table_name:, tables:)
6
+ @column_name = column_name
7
+ @table_name = table_name
8
+ @tables = tables
9
+ end
10
+
11
+ def is_association?
12
+ column_name.name =~ /_id\z/
13
+ end
14
+
15
+ def association_klass
16
+ model && model.reflections[association_name]&.klass
17
+ end
18
+
19
+ def association_table_name
20
+ association_klass&.table_name || tables.detect { |table| table == guessed_table_name }
21
+ end
22
+
23
+ def association_name
24
+ column_name.name.gsub(/_id\z/, '')
25
+ end
26
+
27
+ def model
28
+ ActiveRecord::Base.descendants.detect { |c| c.table_name == table_name }
29
+ end
30
+
31
+ def association
32
+ model && model.reflections[association_name]
33
+ end
34
+
35
+ def polymorphic_association?
36
+ association && association.options[:polymorphic]
37
+ end
38
+
39
+ def foreign_key_exists?
40
+ ActiveRecord::Migration.foreign_key_exists?(table_name, column: column_name.name)
41
+ end
42
+
43
+ def guessed_table_name
44
+ @guessed_table_name ||= association_name.pluralize
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,47 @@
1
+ module YeetDba
2
+ class ArTable
3
+ attr_accessor :table_name, :tables
4
+
5
+ def initialize(table_name:, tables:)
6
+ @table_name = table_name
7
+ @tables = tables
8
+ end
9
+
10
+ def missing_keys
11
+ missing_keys_array = []
12
+ columns.each do |column_name|
13
+ column = ArColumn.new(column_name: column_name, table_name: table_name, tables: tables)
14
+ next unless column.is_association?
15
+
16
+ unless column.model
17
+ puts "YeetDba - cannot find model for #{table_name} . #{column_name.name} | #{column&.association_table_name}"
18
+ end
19
+
20
+ unless column.association
21
+ puts "YeetDba - cannot find association for #{table_name} . #{column_name.name} | #{column&.association_table_name}"
22
+ end
23
+
24
+ next if column.polymorphic_association?
25
+ next if column.foreign_key_exists?
26
+ next if column.association_table_name.blank?
27
+
28
+ if VerifyData.new(column: column).orphaned_rows?
29
+ puts "YeetDba - orphaned rows. Skipping #{table_name} . #{column_name.name} | #{column&.association_table_name}"
30
+ next
31
+ end
32
+
33
+ foreign_key = ForeignKey.new(table_a: table_name,
34
+ table_b: column&.association_table_name,
35
+ column: column_name.name)
36
+ missing_keys_array.push(foreign_key)
37
+ end
38
+ missing_keys_array
39
+ end
40
+
41
+ private
42
+
43
+ def columns
44
+ ActiveRecord::Base.connection.columns(table_name)
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,13 @@
1
+ module YeetDba
2
+ class ForeignKey
3
+ attr_accessor :table_a,
4
+ :table_b,
5
+ :column
6
+
7
+ def initialize(table_a:, table_b:, column:)
8
+ @table_a = table_a
9
+ @table_b = table_b
10
+ @column = column
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ module YeetDba
2
+ class MissingForeignKeys
3
+ def self.foreign_keys
4
+ Rails.application.eager_load!
5
+ tables = ActiveRecord::Base.connection.tables
6
+ tables.map do |table_name|
7
+ ArTable.new(table_name: table_name, tables: tables).missing_keys
8
+ end.flatten
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,35 @@
1
+ module YeetDba
2
+ class VerifyData
3
+ attr_accessor :column
4
+
5
+ def initialize(column:)
6
+ @column = column
7
+ end
8
+
9
+ def orphaned_rows?
10
+ orphaned_rows.first
11
+ end
12
+
13
+ private
14
+
15
+ def orphaned_rows
16
+ association = column.association
17
+ binding.pry if column.column_name.is_a?(String)
18
+
19
+ column_name = column.column_name.name
20
+ table_name = column.table_name
21
+ association_table = column.association_table_name
22
+ model = column.model
23
+
24
+ # Check to see there could be rows with bad data
25
+ bad_ids = model.joins("left join #{association_table} as association_table on association_table.id = #{table_name}.#{column_name}")
26
+ .where.not(column_name => nil)
27
+ .where('association_table.id is null')
28
+ .pluck(:id)
29
+
30
+ # select the rows with the invalid ids
31
+ # AR doesn't support joins with update, so the bad_ids are selected in a different query (above ^)
32
+ model.where(id: bad_ids)
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,3 @@
1
+ module YeetDba
2
+ VERSION = "0.1.1"
3
+ end
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yeet_dba
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Kevin Coleman
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: This scan every ActiveRecord model looking for relationships ('has_many',
56
+ 'belongs_to', etc.) and adds foreign key constraints.
57
+ email:
58
+ - kevin.coleman@sparkstart.io
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".DS_Store"
64
+ - ".gitignore"
65
+ - ".rspec"
66
+ - ".travis.yml"
67
+ - CHANGELOG.md
68
+ - CODE_OF_CONDUCT.md
69
+ - Gemfile
70
+ - LICENSE.txt
71
+ - README.md
72
+ - Rakefile
73
+ - bin/console
74
+ - bin/setup
75
+ - lib/.DS_Store
76
+ - lib/generators/yeet_dba/foreign_key_migration_generator.rb
77
+ - lib/generators/yeet_dba/generator_helpers.rb
78
+ - lib/generators/yeet_dba/templates/add_foreign_keys_yeet_dba.rb
79
+ - lib/yeet_dba.rb
80
+ - yeet_dba.gemspec
81
+ - yeet_dba.png
82
+ - yeet_dba/ar_column.rb
83
+ - yeet_dba/ar_table.rb
84
+ - yeet_dba/foreign_key.rb
85
+ - yeet_dba/missing_foreign_keys.rb
86
+ - yeet_dba/verify_data.rb
87
+ - yeet_dba/version.rb
88
+ homepage: http://rubygems.org/gems/yeet_dba
89
+ licenses:
90
+ - MIT
91
+ metadata:
92
+ homepage_uri: http://rubygems.org/gems/yeet_dba
93
+ source_code_uri: https://github.com/kevincolemaninc/yeet_dba
94
+ changelog_uri: https://github.com/kevincolemaninc/yeet_dba/master/CHANGELOG.md
95
+ post_install_message:
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubygems_version: 3.0.3
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: Generates foreign key constraint migrations for rails databases
114
+ test_files: []