mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 22:05:13 +00:00
14 lines
327 B
Ruby
14 lines
327 B
Ruby
class CreateUsers < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :users do |t|
|
|
t.string :hca_id
|
|
t.text :hca_access_token
|
|
t.string :email
|
|
t.string :name
|
|
t.boolean :is_admin, default: false, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :users, :hca_id, unique: true
|
|
end
|
|
end
|