challah 1.4.0 → 1.4.1

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: f268cefe7d4d7ca73cf6b0631742de957ae0df84
4
- data.tar.gz: 7e02e9a1e73e556191f0c67cebac024f72ceeb73
3
+ metadata.gz: bd2ab4243b555f7451e76767fdfc48c708a791c7
4
+ data.tar.gz: a370df0f901c575fa3807584a812d4b581ad064c
5
5
  SHA512:
6
- metadata.gz: d5101a14894aaca68f0e2bffe587f162cfe580a6c21d11937bab56d7eb4d242ae851750983e5081dfadfb9368fe861350d6f5288b00fd111251d64547a68a9aa
7
- data.tar.gz: d5e4b7739526b89b43fe970256a54b1cf3a12c308a311f741944331fadde99ecd944689c7faa8c4156415e74ca121eecf495be06a7e4cbb5d5bedfbd1240cae3
6
+ metadata.gz: 14cfc8a2bd5116afcf88da830adc6e630e3d30d7224f6faef6b264732adc1e0a4156b58d7d30177da2b2a4e819548be4afa1ee91446211111e796a6ab2292b02
7
+ data.tar.gz: af7a76328c592418cc5e2b6caa8abfbae59b2509e5060240a9a897d82eef3fc7caa5589a678c4d232af3918755473bf9b36de32a775342c15cf9a68feb5a81a9
@@ -1,3 +1,7 @@
1
+ ## Challah 1.4.1
2
+
3
+ * Fix running migrations on empty database [PR #27](https://github.com/jdtornow/challah/pull/27) @philtr
4
+
1
5
  ## Challah 1.4
2
6
 
3
7
  * Rails 5 support.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -7,8 +7,13 @@ module Challah
7
7
  attr_reader :password_confirmation
8
8
  attr_reader :password_updated
9
9
 
10
- if columns.map(&:name).include?("status")
11
- enum status: %w( active inactive )
10
+ begin
11
+ if columns.map(&:name).include?("status")
12
+ enum status: %w( active inactive )
13
+ end
14
+ rescue ActiveRecord::StatementInvalid => exception
15
+ raise exception unless exception.message =~ /could not find table/i ||
16
+ exception.message =~ /does not exist/i
12
17
  end
13
18
 
14
19
  before_save :ensure_user_tokens
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: challah
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Tornow
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-07-11 00:00:00.000000000 Z
13
+ date: 2016-07-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline