Permalink
Browse files

More cleaning.

  • Loading branch information...
1 parent e9fe85a commit da2ba64a49b0f8bcc5942c38794751950c2dd85d @jeriko jeriko committed Nov 28, 2011
@@ -2,9 +2,9 @@ class AddBitmaskRolesTo<%= table_name.camelize %> < ActiveRecord::Migration
def change
change_table :<%= table_name %> do |t|
t.integer :<%= self.role_col %>, default: 0
- <% if options.add_index -%>
+ <%- if options.add_index -%>
t.index :<%= self.role_col %>
- <% end -%>
+ <%- end -%>
end
end
end
@@ -2,9 +2,9 @@ class AddEasyRolesTo<%= table_name.camelize %> < ActiveRecord::Migration
def change
change_table :<%= table_name %> do |t|
t.string :<%= self.role_col %>, default: '--- []'
- <% if options.add_index -%>
+ <%- if options.add_index -%>
t.index :<%= self.role_col %>
- <% end -%>
+ <%- end -%>
end
end
end

0 comments on commit da2ba64

Please sign in to comment.