activerecord-mysql-awesome 0.0.7 → 0.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1acaa010a9b8247e4da71e4db46c785d41b08ac
|
4
|
+
data.tar.gz: 91cba5093474fa74a80f6dc11f6297a290488bfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c3110d365ad43ef7f21a24620bbd1ea79e59d89439c425be74a3bdc646b7e3657dbbbc2c3d070c814eb96e63d433f4cec96c1b379fa64ee8e85f96e739b2a8
|
7
|
+
data.tar.gz: 12725c84a1d598c87435a2b68ff6056d831b4648e3e91ef5d10f3f441386c8b274c7965c27d1ada86afd4ca239890e1d8dba523c004603a097663b128de83816
|
data/lib/activerecord-mysql-awesome/active_record/connection_adapters/abstract_mysql_adapter.rb
CHANGED
@@ -273,6 +273,8 @@ module ActiveRecord
|
|
273
273
|
def table_options(table_name)
|
274
274
|
create_table_info = select_one("SHOW CREATE TABLE #{quote_table_name(table_name)}")["Create Table"]
|
275
275
|
|
276
|
+
return unless create_table_info
|
277
|
+
|
276
278
|
# strip create_definitions and partition_options
|
277
279
|
raw_table_options = create_table_info.sub(/\A.*\n\) /m, '').sub(/\n\/\*!.*\*\/\n\z/m, '').strip
|
278
280
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-mysql-awesome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryuta Kamizono
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|