activerecord-migration-ext 0.1.0

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: 1a2a074026db1c2fa04e613be227ea19c331d7334ae43b726e0ab01511204d8f
4
+ data.tar.gz: bc8e2da78da1d1a3b2be95eaeb1e5100b718ef5eb3bce5e0875d3b53b38ad122
5
+ SHA512:
6
+ metadata.gz: da28109391bfd63248d885fd37a4fd591cbd7955d35f1fe3f2e36efdd9f6c4679d6e655048f2a20f2fd261c0a01388a039702e23da864be76d81a09389c4826f
7
+ data.tar.gz: 7f4d7c5b07ad3b0e59829b2dad21f392e149dbce79da2cd105c837d4b2ca6aeee5b2df81286578365045bde302a0841e65c5a24127f5ea79b036c01359c08bfe
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
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.1
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: single_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: single_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/Changelog.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-03-21
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at tyler@tylerrick.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in activerecord-migration-ext.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rspec', '~> 3.0'
11
+
12
+ gem 'rubocop', '~> 1.7'
data/License.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 TODO: Write your name
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/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/Readme.md ADDED
@@ -0,0 +1,43 @@
1
+ # ActiveRecord::Migration::Ext
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/active_record/migration/ext`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'activerecord-migration-ext'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install activerecord-migration-ext
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/TylerRick/activerecord-migration-ext. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/TylerRick/activerecord-migration-ext/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the ActiveRecord::Migration::Ext project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/TylerRick/activerecord-migration-ext/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/active_record/migration/ext/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'activerecord-migration-ext'
7
+ spec.version = ActiveRecord::Migration::Ext.version
8
+ spec.authors = ['Tyler Rick']
9
+ spec.email = ['tyler@tylerrick.com']
10
+
11
+ spec.summary = 'A collection of ActiveRecord::Migration extensions, including change_table_move_to_end'
12
+ spec.homepage = "https://github.com/TylerRick/#{spec.name}"
13
+ spec.license = 'MIT'
14
+ spec.required_ruby_version = '>= 2.4.0'
15
+
16
+ spec.metadata['homepage_uri'] = spec.homepage
17
+ spec.metadata['source_code_uri'] = spec.homepage
18
+ spec.metadata['changelog_uri'] = "#{spec.metadata['source_code_uri']}/blob/master/Changelog.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
24
+ end
25
+ spec.bindir = 'exe'
26
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ['lib']
28
+
29
+ spec.add_dependency 'activerecord'
30
+ spec.add_dependency 'activesupport'
31
+
32
+ # For more information and examples about making a new gem, checkout our
33
+ # guide at: https://bundler.io/guides/creating_gem.html
34
+ end
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'active_record/migration/ext'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ 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
@@ -0,0 +1,129 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'command_recorder'
4
+
5
+ module ActiveRecord
6
+ class Migration
7
+ module Ext
8
+ module ChangeTableMoveToEnd
9
+ module CommandRecorder; end
10
+
11
+ module CommandRecorder
12
+ module Ext
13
+ def only_add_column_commands
14
+ dup.tap do |recorder|
15
+ recorder.commands = commands.select do |(command, _args, _block)|
16
+ command == :add_column
17
+ end
18
+ end
19
+ end
20
+
21
+ def filter_add_column_commands
22
+ dup.tap do |recorder|
23
+ recorder.commands = commands.map do |(command, args, block)|
24
+ if command == :add_column
25
+ yield [command, args, block]
26
+ else
27
+ [command, args, block]
28
+ end
29
+ end
30
+ end
31
+ end
32
+
33
+ def column_names
34
+ only_add_column_commands.commands.map do |(_command, args, _block)|
35
+ _table_name, name, _type = args
36
+ name
37
+ end
38
+ end
39
+
40
+ def add_suffix(suffix)
41
+ only_add_column_commands.tap do |recorder|
42
+ recorder.commands = commands.map do |(command, args, _block)|
43
+ table_name, name, type = args
44
+ name = "#{name}#{suffix}"
45
+ [command, [table_name, name, type]]
46
+ end
47
+ end
48
+ end
49
+
50
+ # changes add_column to rename_column, asking the provided block to transform the name
51
+ def change_add_column_to_rename
52
+ only_add_column_commands.tap do |recorder|
53
+ recorder.commands = commands.map do |(_command, args, _block)|
54
+ table_name, name, _type = args
55
+ [:rename_column, [table_name, name, yield(name)]]
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+
62
+ # Provides a convenient way to reorder your columns, since you can't use after: 'other_field' when using PostgreSQL
63
+ # (https://dba.stackexchange.com/questions/3276/how-can-i-specify-the-position-for-a-new-column-in-postgresql)
64
+ #
65
+ # Adds a new copy of the given columns, copies data into the new columns, then removes the old
66
+ # columns, and renames the new columns to the original names.
67
+ #
68
+ # Does not re-add indexes.
69
+ #
70
+ def change_table_move_to_end(table_name, &block)
71
+ add_orig_columns = recorder_record do
72
+ change_table table_name, &block
73
+ end
74
+ add_orig_columns.extend(CommandRecorder::Ext)
75
+ # pp add_orig_columns.commands
76
+
77
+ say_with_time_and_silence "Moving to end of #{table_name}: #{add_orig_columns.column_names.join(', ')}" do
78
+ # Add a new copy of the given columns (with temporary names)
79
+ add_new_columns = add_orig_columns.add_suffix('_copy').extend(CommandRecorder::Ext)
80
+ # pp add_new_columns.commands
81
+ add_new_columns.replay(self)
82
+
83
+ # Copy data into the new columns
84
+ column_names_to_temp_names = add_orig_columns.column_names.map do |name|
85
+ [name, "#{name}_copy"]
86
+ end
87
+ reversible do |dir|
88
+ dir.up do
89
+ execute <<~END
90
+ update #{table_name}
91
+ set
92
+ #{column_names_to_temp_names.map do |orig, temp|
93
+ "#{temp} = #{orig}"
94
+ end.join(",\n")}
95
+ ;
96
+ END
97
+ end
98
+ dir.down do
99
+ execute <<~END
100
+ update #{table_name}
101
+ set
102
+ #{column_names_to_temp_names.map do |orig, temp|
103
+ "#{orig} = #{temp}"
104
+ end.join(",\n")}
105
+ ;
106
+ END
107
+ end
108
+ end
109
+
110
+ # Remove the old columns
111
+ # pp add_orig_columns.inverse.commands
112
+ add_orig_columns.inverse.replay(self)
113
+
114
+ # Rename the new columns to the original names.
115
+ add_new_columns.change_add_column_to_rename do |name|
116
+ name.sub(/_copy$/, '')
117
+ end.replay(self)
118
+ end
119
+ end
120
+
121
+ def say_with_time_and_silence(message, &block)
122
+ say_with_time message do
123
+ suppress_messages(&block)
124
+ end
125
+ end
126
+ end
127
+ end
128
+ end
129
+ end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecord
4
+ class Migration
5
+ module Ext
6
+ module CommandRecorder
7
+ # ActiveRecord::Migration#revert automatically calls recorder.replay(self) and doesn't even return
8
+ # the recorder; this returns the recorder, letting you to do whatever you want with it.
9
+ #
10
+ # AKA revert_without_replay
11
+ #
12
+ # recorder = recorder_revert do
13
+ # change_table 'users' do |t|
14
+ # t.string 'name'
15
+ # t.integer 'number'
16
+ # end
17
+ # end
18
+ # pp recorder.commands
19
+ # # => [[:remove_column, ["users", "number", :integer], nil], [:remove_column, ["users", "name", :string], nil]]
20
+ # pp recorder.inverse.commands
21
+ # # => [[:add_column, ["users", "name", :string], nil], [:add_column, ["users", "number", :integer], nil]]
22
+ #
23
+ def recorder_revert(*_migration_classes, &block)
24
+ command_recorder.tap do |recorder|
25
+ @connection = recorder
26
+ suppress_messages do
27
+ connection.revert(&block)
28
+ end
29
+ @connection = recorder.delegate
30
+ # recorder.replay(self)
31
+ end
32
+ end
33
+
34
+ # Records commands returns the recorder.
35
+ #
36
+ # recorder = recorder_record do
37
+ # change_table 'users' do |t|
38
+ # t.string 'name'
39
+ # t.integer 'number'
40
+ # end
41
+ # end
42
+ # pp recorder.commands
43
+ # # => [[:add_column, ["users", "name", :string], nil], [:add_column, ["users", "number", :integer], nil]]
44
+ # pp recorder.inverse.commands
45
+ # # => [[:remove_column, ["users", "number", :integer], nil], [:remove_column, ["users", "name", :string], nil]]
46
+ #
47
+ # Based on recorder_revert but without the revert
48
+ def recorder_record(&block)
49
+ command_recorder.tap do |recorder|
50
+ @connection = recorder
51
+ suppress_messages(&block)
52
+ @connection = recorder.delegate
53
+ # recorder.replay(self)
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+
61
+ module ActiveRecord
62
+ class Migration
63
+ class CommandRecorder
64
+ def dup
65
+ CommandRecorder.new(delegate).tap do |recorder|
66
+ recorder.commands = commands
67
+ end
68
+ end
69
+
70
+ # Returns the inverse of these commands — the same as if they had been recorded with revert:
71
+ # each command is reverted and in the reverse order.
72
+ def inverse
73
+ dup.tap do |recorder|
74
+ recorder.commands = commands.reverse.map do |(command, args, _block)|
75
+ inverse_of(command, args)
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/concern'
4
+
5
+ # Provides an alternate alias for `delegate` in case the one we want from Module is shadowed.
6
+ #
7
+ # Normally, you could just call delegate directly, but Migration defines this at class level,
8
+ # which shadows the delegate method from Module:
9
+ # attr_accessor :delegate
10
+ #
11
+ module DoDelegate
12
+ extend ActiveSupport::Concern
13
+
14
+ module ClassMethods
15
+ def do_delegate(*args)
16
+ Module.instance_method(:delegate).bind_call(self, *args)
17
+ end
18
+ end
19
+ end
20
+
21
+ # Delegates methods directly to @connection without wrapping in say_with_time
22
+ #
23
+ # By default, to call calling on connection from a migration, it goes through
24
+ # Migration#method_missing, which wraps it in say_with_time. That can be very noisy, so you can use
25
+ # this to internal/unimportant method calls so that we only see the important output from
26
+ # change_table, for example in our migration output.
27
+ module ActiveRecord
28
+ class Migration
29
+ module Ext
30
+ module DelegateToConnection
31
+ extend ActiveSupport::Concern
32
+ include DoDelegate
33
+
34
+ module ClassMethods
35
+ def delegate_to_connection(*args)
36
+ do_delegate(*args, to: :@connection)
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecord
4
+ class Migration
5
+ module Ext
6
+ def self.version
7
+ '0.1.0'
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support'
4
+ require 'active_record'
5
+
6
+ require_relative 'ext/version'
7
+ require_relative 'ext/delegate_to_connection'
8
+ require_relative 'ext/command_recorder'
9
+ require_relative 'ext/change_table_move_to_end'
10
+
11
+ ActiveRecord::Migration
12
+ module ActiveRecord
13
+ class Migration
14
+ include Ext::DelegateToConnection
15
+ include Ext::CommandRecorder
16
+ include Ext::ChangeTableMoveToEnd
17
+ end
18
+ end
@@ -0,0 +1 @@
1
+ require_relative 'active_record/migration/ext'
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-migration-ext
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tyler Rick
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-03-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email:
43
+ - tyler@tylerrick.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".rspec"
50
+ - ".rubocop.yml"
51
+ - Changelog.md
52
+ - Code_of_conduct.md
53
+ - Gemfile
54
+ - License.txt
55
+ - Rakefile
56
+ - Readme.md
57
+ - activerecord-migration-ext.gemspec
58
+ - bin/console
59
+ - bin/setup
60
+ - lib/active_record/migration/ext.rb
61
+ - lib/active_record/migration/ext/change_table_move_to_end.rb
62
+ - lib/active_record/migration/ext/command_recorder.rb
63
+ - lib/active_record/migration/ext/delegate_to_connection.rb
64
+ - lib/active_record/migration/ext/version.rb
65
+ - lib/activerecord-migration-ext.rb
66
+ homepage: https://github.com/TylerRick/activerecord-migration-ext
67
+ licenses:
68
+ - MIT
69
+ metadata:
70
+ homepage_uri: https://github.com/TylerRick/activerecord-migration-ext
71
+ source_code_uri: https://github.com/TylerRick/activerecord-migration-ext
72
+ changelog_uri: https://github.com/TylerRick/activerecord-migration-ext/blob/master/Changelog.md
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 2.4.0
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubygems_version: 3.3.3
89
+ signing_key:
90
+ specification_version: 4
91
+ summary: A collection of ActiveRecord::Migration extensions, including change_table_move_to_end
92
+ test_files: []