Sha256: 15994276c50f5645aa8c85664f9f26af5e3663c54db3e2bf2af01e18f371dda9

Contents?: true

Size: 175 Bytes

Versions: 3

Compression:

Stored size: 175 Bytes

Contents

class AddRoleToUserResources < ActiveRecord::Migration[5.1]
  def change
    add_column :users, :role, :string, null: false, default: ""
    add_index :users, :role
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enja-0.1.2 spec/rails/rails-5.1.2/db/migrate/20170711060332_add_role_to_user_resources.rb
enja-0.1.1 spec/rails/rails-5.1.2/db/migrate/20170711060332_add_role_to_user_resources.rb
enja-0.1.0 spec/rails/rails-5.1.2/db/migrate/20170710091816_add_role_to_user_resources.rb