diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-25 02:11:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 02:11:14 +0200 |
commit | b982d549f440cfebadd5dc8d300a506df213bfee (patch) | |
tree | 1f3bf571128ba5092345bc0de22b0038821deca4 | |
parent | 909a6d4661fbc79419e396076467aec6251b7af4 (diff) |
Add strong_migrations gem to warn when creating unsafe migrations (#5078)
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 3 | ||||
-rw-r--r-- | config/initializers/strong_migrations.rb | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile index 4f4861913..6c31e8932 100644 --- a/Gemfile +++ b/Gemfile @@ -105,6 +105,7 @@ group :development do gem 'brakeman', '~> 3.6', require: false gem 'bundler-audit', '~> 0.5', require: false gem 'scss_lint', '~> 0.53', require: false + gem 'strong_migrations' gem 'capistrano', '~> 3.8' gem 'capistrano-rails', '~> 1.2' diff --git a/Gemfile.lock b/Gemfile.lock index 97db3aa9a..b29d32400 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -482,6 +482,8 @@ GEM net-scp (>= 1.1.2) net-ssh (>= 2.8.0) statsd-instrument (2.1.4) + strong_migrations (0.1.9) + activerecord (>= 3.2.0) temple (0.8.0) terminal-table (1.8.0) unicode-display_width (~> 1.1, >= 1.1.1) @@ -614,6 +616,7 @@ DEPENDENCIES simplecov (~> 0.14) sprockets-rails (~> 3.2) statsd-instrument (~> 2.1) + strong_migrations twitter-text (~> 1.14) tzinfo-data (~> 1.2017) uglifier (~> 3.2) diff --git a/config/initializers/strong_migrations.rb b/config/initializers/strong_migrations.rb new file mode 100644 index 000000000..3d7beac9f --- /dev/null +++ b/config/initializers/strong_migrations.rb @@ -0,0 +1,3 @@ +# frozen_string_literal: true + +StrongMigrations.start_after = 20170924022025 if Rails.env.development? |