Add strong_migrations gem (#5522)
* Add strong_migrations gem * Incorporate PR feedback * Move gem to group :development, :test
This commit is contained in:
parent
245550a10b
commit
9ef1ae512b
3 changed files with 9 additions and 0 deletions
1
Gemfile
1
Gemfile
|
|
@ -143,6 +143,7 @@ group :development, :test do
|
|||
gem "rubocop-rspec", "~> 1.37", require: false # Code style checking for RSpec files
|
||||
gem "spring", "~> 2.1" # Preloads your application so things like console, rake and tests run faster
|
||||
gem "spring-commands-rspec", "~> 1.0" # rspec command for spring
|
||||
gem "strong_migrations", "~> 0.5" # Catch unsafe migrations in development
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
|
|
|||
|
|
@ -782,6 +782,8 @@ GEM
|
|||
dante (>= 0.2.0)
|
||||
multi_json (~> 1.0)
|
||||
stripe (>= 2.0.3)
|
||||
strong_migrations (0.5.1)
|
||||
activerecord (>= 5)
|
||||
test-prof (0.10.2)
|
||||
thor (0.20.3)
|
||||
thread_safe (0.3.6)
|
||||
|
|
@ -994,6 +996,7 @@ DEPENDENCIES
|
|||
storext (~> 3.1)
|
||||
stripe (~> 4.23)
|
||||
stripe-ruby-mock (~> 2.5)
|
||||
strong_migrations (~> 0.5)
|
||||
test-prof (~> 0.10)
|
||||
timber (~> 3.0)
|
||||
timber-rails (~> 1.0)
|
||||
|
|
|
|||
5
config/initializers/strong_migrations.rb
Normal file
5
config/initializers/strong_migrations.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# https://github.com/ankane/strong_migrations#existing-migrations
|
||||
StrongMigrations.start_after = 2019_12_27_114543
|
||||
|
||||
# https://github.com/ankane/strong_migrations#target-version
|
||||
StrongMigrations.target_postgresql_version = 11
|
||||
Loading…
Add table
Reference in a new issue