No commit activity in last 3 years
No release in over 3 years
Turns off Rails DB schema version.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Activerecord::QuietSchemaVersion

What is this?

ActiveRecord::Schema.define's version argument is frequently conflicts, so make it empty.

before:

ActiveRecord::Schema.define(version: 2017_05_05_000000)

after:

ActiveRecord::Schema.define()

Why can it be empty?

This version argument shows "Which migration files were executed" and is used to insert into schema_migrations table when rake db:schame:load is executed.

If always commit db/schema.rb with db/migrate/xxx, version will be the maximum version of migration files.

After using this gem, version is automatically set the maximum version if not specified.

Installation

Add this line to your application's Gemfile:

gem 'activerecord-quiet_schema_version'

License

The gem is available as open source under the terms of the MIT License.