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 +4 -4
- data/lib/active_generator/version.rb +1 -1
- data/lib/generators/rails/model_generator.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0faed1e76831b4df95a2d89501263dc30f445f
|
4
|
+
data.tar.gz: 67cfd006e68f405dcaffd522cfa72efdfdf1ad8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4aeb31c22abc67747d0bdd2f7ee48cdfd11e85fbb6c275483c1135470aa505c56434102e7bfa932937bdfba5aa1b7a356ea3834040eea15610de137bd8c2935
|
7
|
+
data.tar.gz: e11eb13b0ae60710d3a071c4e0903efd5f31107da96bf0ddd3def9139ae9093dafb9eb56a8111f3b2dbf0fdda50fdb3339f5f09b4029005a447cdcc9078b7fe8
|
@@ -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
|