class CreateModuleGroup

Public Instance Methods

change() click to toggle source
# File lib/generators/permission/templates/module_group_migration.rb, line 2
  def change
    create_table :module_groups do |t|
<%= module_group_migration_data -%>

<% attributes.each do |attribute| -%>
      t.<%= attribute.type %> :<%= attribute.name %>
<% end