Sha256: 475613b76c0182b83c6f270c554f8ac96f38b3288a9a725c7bca729dc2959baa

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

class AddUsersGroupsTable < ActiveRecord::Migration
  def change
    create_table :underworld_groups_users do |t|
      if Underworld::Engine.use_uuid
        t.uuid :user_id
        t.uuid :group_id
      else
        t.belongs_to :user
        t.belongs_to :group
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
underworld-1.0.0 db/migrate/20140613120923_add_users_groups_table.rb