Permalink
Browse files

Bugfix.

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

0 comments on commit 5a8e84f

Please sign in to comment.