SchemaPlus / schema_validations

Automatically creates validations basing on the database schema.
Other
174 stars 34 forks source link

Rails 5.2 #59

Closed frostpuppet closed 5 years ago

frostpuppet commented 6 years ago

Unable to use with Rails 5.2 and AR 5.2

frostpuppet commented 6 years ago

Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies.... Bundler could not find compatible versions for gem "activerecord": In Gemfile: rails (~> 5.2.1) was resolved to 5.2.1, which depends on activerecord (= 5.2.1)

schema_validations (~> 2.3.0) was resolved to 2.3.0, which depends on
  schema_plus_columns was resolved to 0.1.2, which depends on
    activerecord (~> 4.2)
ghost commented 6 years ago

@frostpuppet I did some searching in the forks and this is working for me

gem 'schema_validations',  github: 'SynergyDataSystems/schema_validations'
gem 'schema_plus_columns', github: 'SynergyDataSystems/schema_plus_columns'
gem 'schema_plus_core', github: 'SynergyDataSystems/schema_plus_core'
gem 'schema_plus_indexes', github: 'SynergyDataSystems/schema_plus_indexes'

I don't see PR's but their forks are working

urkle commented 5 years ago

This is now usable on Rails 5.2 (all dependencies have been updated to support Rails 5.2)