phil_columns-activerecord 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ab2ea3f6a60a106d83aaba423d35a329860fca4
4
- data.tar.gz: bc2c9e215e6549725ae7b4a35c731ea45229a613
3
+ metadata.gz: 8669fb4534bed3973ade5405629bbbabc2206501
4
+ data.tar.gz: b5ff6da84974c856212edee3d999aa3fd841b3f0
5
5
  SHA512:
6
- metadata.gz: 8ef2de163d197983aacc1fecc43c83c8b187f8ecf7fc9885a978568a70e2cfbe41ac8f6c70dee7d16b1af914257a15ff3bc4f89d6af77f2ff3bdfe1e54fa4919
7
- data.tar.gz: f38cb65ef3c28b8aa7f9400da339955a9dbe40a3538cd2e6f43c62c647e7e99872a037cf367759fc8936c8b5bc69d03d7fce96d237fa91f1795e4a04e72d7df7
6
+ metadata.gz: 2c9040b00fb81ee7a44a84a97d6efbc7d3ce48226e8c2e0fe32aa1d8016851475b212d4430a3bb02302250138beabe8566eeeb4c04956d78e63429e4589afd45
7
+ data.tar.gz: fd9481b4ac441299e05460483f0352cf6d85dae6ec1101ee1c0240cf2aa853002b6124ebbb75c714055a4645dac40e04e5c4fbc63d8c8fdbee9e46baedd9fa83
@@ -19,6 +19,8 @@ module PhilColumns
19
19
  end
20
20
 
21
21
  def clear_migrations_table
22
+ return unless ActiveRecord::Base.connection.table_exists?( schema_migrations_table_name )
23
+
22
24
  case connection_config[:adapter]
23
25
  when 'sqlite', 'sqlite3'
24
26
  connection.execute("DELETE FROM #{table_name}")
@@ -1,5 +1,5 @@
1
1
  module PhilColumns
2
2
  module Activerecord
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phil_columns-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. Jason Harrelson (midas)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-28 00:00:00.000000000 Z
11
+ date: 2014-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler