Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (10 sloc) 289 Bytes
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.