Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2d66aa573c
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (10 sloc) 0.289 kB
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 -%>
t.index :<%= self.role_col %>
<%- end -%>
end
end
end
Jump to Line
Something went wrong with that request. Please try again.