Skip to content

Commit

Permalink
More cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Davey committed Nov 28, 2011
1 parent e9fe85a commit da2ba64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/generators/active_record/templates/migration_bitmask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.