toastyapps-migratory 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/testtask'
3
3
 
4
4
  gem_spec = Gem::Specification.new do |gem_spec|
5
5
  gem_spec.name = 'migratory'
6
- gem_spec.version = '0.0.7'
6
+ gem_spec.version = '0.0.8'
7
7
  gem_spec.summary = 'Rails migration extender for default values and adding indexes'
8
8
  gem_spec.description = 'Rails migration extender for default values and adding indexes'
9
9
  gem_spec.email = 'matt@toastyapps.com'
@@ -1,9 +1,9 @@
1
1
  class <%= class_name.underscore.camelize %> < ActiveRecord::Migration
2
2
  def self.up<% attributes.each do |attribute| %>
3
3
  <%= migration_action %>_column :<%= table_name %>, :<%= attribute.name %><% if migration_action == 'add' %>, :<%= attribute.type %><%= attribute.options %><% end -%>
4
- <% for attribute in attributes -%><% if attribute.is_indexed -%>
5
- add_index :<%= attribute.name %>
6
- <% end -%><% end -%>
4
+ <% for attribute in attributes -%>
5
+ <% if attribute.is_indexed %>
6
+ add_index :<%= attribute.name %><% end -%><% end -%>
7
7
  <%- end %>
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toastyapps-migratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Mongeau