This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-12 00:47:08 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-04 17:43:02 -07:00
|
|
|
class CreateAccounts < ActiveRecord::Migration[4.2]
|
2016-02-20 13:53:20 -08:00
|
|
|
def change
|
|
|
|
create_table :accounts do |t|
|
|
|
|
t.string :username, null: false, default: ''
|
|
|
|
t.string :domain, null: true
|
|
|
|
|
|
|
|
# PuSH credentials
|
|
|
|
t.string :verify_token, null: false, default: ''
|
|
|
|
t.string :secret, null: false, default: ''
|
|
|
|
|
|
|
|
# RSA key pair
|
|
|
|
t.text :private_key, null: true
|
|
|
|
t.text :public_key, null: false, default: ''
|
|
|
|
|
|
|
|
# URLs
|
|
|
|
t.string :remote_url, null: false, default: ''
|
|
|
|
t.string :salmon_url, null: false, default: ''
|
|
|
|
t.string :hub_url, null: false, default: ''
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
|
|
|
|
add_index :accounts, [:username, :domain], unique: true
|
|
|
|
end
|
|
|
|
end
|