class CreateUnderworldGroups < ActiveRecord::Migration def change args = {} args[:id] = :uuid if Underworld::Engine.use_uuid create_table :underworld_groups, **args do |t| t.string :name t.string :role t.timestamps end add_index :underworld_groups, :role, unique: true end end