apiotics 0.2.16 → 0.2.17
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: 9d8cf269fbbddb8a9f9a4dec5d4199087b69f6ca
|
4
|
+
data.tar.gz: dc4872dff5821858c6bd7c8384684bd3b838321a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddfcf1ff47ed6805964e63d02953186208669af7c241f2070af863a5eb2411194c0008e1c83993232f1e6c61f588aeab78b4b169988513d2cfc1883a511443e2
|
7
|
+
data.tar.gz: da13b27025962a7ec1d3a1cb45c1e47e5c776f26de00015ee89969ee69b9f9f7cc79458d1fd500a194277d6c7513ba392b3c95a9df63ecba7e7ebb78061ab303
|
data/lib/apiotics/version.rb
CHANGED
@@ -2,7 +2,7 @@ class Create<%= plural_class_name %> < ActiveRecord::Migration[5.1]
|
|
2
2
|
def change
|
3
3
|
create_table :<%= plural_name %> do |t|
|
4
4
|
<% attributes.each do |k,v| %>
|
5
|
-
<% if @attribute_map[v] != nil %>t.<%= @attribute_map[v]["kind"] %> :<%= k %>, limit: <%= @attribute_map[v]["limit"] %><% else %>t.<%= v %> :<%= k %><% end %>
|
5
|
+
<% if @attribute_map[v] != nil && @attribute_map[v]["limit"] != nil %>t.<%= @attribute_map[v]["kind"] %> :<%= k %>, limit: <%= @attribute_map[v]["limit"] %><% elsif @attribute_map[v] != nil %>t.<%= @attribute_map[v]["kind"] %> :<%= k %><% else %>t.<%= v %> :<%= k %><% end %>
|
6
6
|
t.boolean :<%= k %>_ack
|
7
7
|
t.boolean :<%= k %>_complete
|
8
8
|
<% unless Apiotics.configuration.reduced_metadata == true %>
|