Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
blockscout/apps/explorer/priv/repo/migrations/20180508183700_create_users...

14 lines
331 B

defmodule Explorer.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add(:username, :string, null: false)
add(:password_hash, :string, null: false)
timestamps()
end
create(index(:users, ["lower(username)"], unique: true, name: :unique_username))
end
end