validates_schema 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,13 @@ class ActiveRecord::Base
30
30
  def set_table_name_with_schema_validations(*args)
31
31
  set_table_name_without_schema_validations(*args)
32
32
  return if abstract_class
33
- add_schema_based_validations(self)
33
+ begin
34
+ add_schema_based_validations(self)
35
+ rescue ActiveRecord::StatementInvalid => e
36
+ # apparently it just doesn't want to work,
37
+ # so forget about it!
38
+ # puts "e.message: #{e.message}"
39
+ end
34
40
  end
35
41
  alias_method_chain :set_table_name, :schema_validations
36
42
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 0
9
- version: 1.1.0
8
+ - 1
9
+ version: 1.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - markbates
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- hash: 372854992706096450
63
+ hash: 3962466223536753182
64
64
  segments:
65
65
  - 0
66
66
  version: "0"