<commit_before>class RolifyCreateRoles < ActiveRecord::Migration[5.0]
  def change
    create_table :roles, options: 'ROW_FORMAT=DYNAMIC' do |t|
      t.string :name
      t.references :resource, polymorphic: true

      t.timestamps
    end

    create_table :users_roles, id: false, options: 'ROW_FORMAT=DYNAMIC' do |t|
      t.references :user
      t.references :role
    end

    add_index :roles, :name
    add_index :roles, [:name, :resource_type, :resource_id]
    add_index :users_roles, [:user_id, :role_id]
  end
end<commit_msg>Fix mysql issue when creating tables<commit_after>class RolifyCreateRoles < ActiveRecord::Migration[5.0]
  def change
    create_table :roles, options: 'DEFAULT CHARSET=utf8' do |t|
      t.string :name
      t.references :resource, polymorphic: true

      t.timestamps
    end

    create_table :users_roles, id: false, options: 'DEFAULT CHARSET=utf8' do |t|
      t.references :user
      t.references :role
    end

    add_index :roles, :name
    add_index :roles, [:name, :resource_type, :resource_id]
    add_index :users_roles, [:user_id, :role_id]
  end
end
{'fraction_non_alphanumeric': 0.10316742081447963, 'fraction_numerical': 0.005429864253393665, 'mean_word_length': 3.5702479338842976, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4619555', 'n_tokens_mistral': 402, 'n_tokens_neox': 387, 'n_words': 98}