active_generator 2.2.2 → 2.2.3

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: 77da6787e317b3031644a9a2ef7750c942269249
4
- data.tar.gz: 07cf65c3b30cd8a231d568454c7e6126d199bff4
3
+ metadata.gz: 0b0faed1e76831b4df95a2d89501263dc30f445f
4
+ data.tar.gz: 67cfd006e68f405dcaffd522cfa72efdfdf1ad8b
5
5
  SHA512:
6
- metadata.gz: 8f803e9bd1d2a9d8cd526abd90c28d5cfa29b1e940a3508f0788d939a520a05fc7c6c19a7155a720f13aec6c03243881dee0ec037c3fe593e47991d305967594
7
- data.tar.gz: b5f62c66e32bdc35e892f02a6006ff4ab58692a65d3a3fa483bb5820f3b6aae304cbbe92aa6c001ce7baff2672937a279b71543d730f97b35c8541365de88d74
6
+ metadata.gz: c4aeb31c22abc67747d0bdd2f7ee48cdfd11e85fbb6c275483c1135470aa505c56434102e7bfa932937bdfba5aa1b7a356ea3834040eea15610de137bd8c2935
7
+ data.tar.gz: e11eb13b0ae60710d3a071c4e0903efd5f31107da96bf0ddd3def9139ae9093dafb9eb56a8111f3b2dbf0fdda50fdb3339f5f09b4029005a447cdcc9078b7fe8
@@ -1,3 +1,3 @@
1
1
  module ActiveGenerator
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
@@ -5,7 +5,7 @@ module ActiveRecord
5
5
  class ModelGenerator
6
6
 
7
7
  def create_migration_file
8
- return unless options[:migration] && options[:parent].nil?
8
+ # return unless options[:migration] && options[:parent].nil?
9
9
  attributes.each { |a| a.attr_options.delete(:index) if a.reference? && !a.has_index? } if options[:indexes] == false
10
10
  migration_template "../../migration/templates/create_table_migration.rb", "db/migrate/create_#{table_name}.rb"
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez