enforce_schema_rules 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/enforce_schema_rules.rb +1 -0
  2. metadata +6 -8
@@ -11,6 +11,7 @@ module Jls
11
11
  module ClassMethods
12
12
  # Call all enforcement methods
13
13
  def enforce_schema_rules(options = {})
14
+ return unless table_exists?
14
15
  enforce_column_limits(options.dup)
15
16
  enforce_integer_columns(options.dup)
16
17
  enforce_not_null(options.dup)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enforce_schema_rules
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease: false
4
+ hash: 63
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 15
10
- version: 0.0.15
9
+ - 16
10
+ version: 0.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Starcher
@@ -18,8 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-12-02 00:00:00 -05:00
22
- default_executable:
21
+ date: 2011-04-27 00:00:00 Z
23
22
  dependencies:
24
23
  - !ruby/object:Gem::Dependency
25
24
  name: activerecord
@@ -50,7 +49,6 @@ extra_rdoc_files:
50
49
  files:
51
50
  - lib/enforce_schema_rules.rb
52
51
  - README
53
- has_rdoc: true
54
52
  homepage:
55
53
  licenses: []
56
54
 
@@ -81,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
79
  requirements: []
82
80
 
83
81
  rubyforge_project:
84
- rubygems_version: 1.3.7
82
+ rubygems_version: 1.7.2
85
83
  signing_key:
86
84
  specification_version: 3
87
85
  summary: An ActiveRecord plugin to automatically enforce database contraints