diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-19 20:58:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 20:58:19 +0200 |
commit | 3ed94dcc1acf73f1d0d1ab43567b88ee953f57c9 (patch) | |
tree | 3bec67e9d52943779f1b4070556ccab8d64bf6a4 /db/migrate/20190915194355_create_account_aliases.rb | |
parent | b6df9c10671cd7bf48de3dbd7a94a92fb0a148ec (diff) |
Add account migration UI (#11846)
Fix #10736 - Change data export to be available for non-functional accounts - Change non-functional accounts to include redirecting accounts
Diffstat (limited to 'db/migrate/20190915194355_create_account_aliases.rb')
-rw-r--r-- | db/migrate/20190915194355_create_account_aliases.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20190915194355_create_account_aliases.rb b/db/migrate/20190915194355_create_account_aliases.rb new file mode 100644 index 000000000..32ce031d9 --- /dev/null +++ b/db/migrate/20190915194355_create_account_aliases.rb @@ -0,0 +1,11 @@ +class CreateAccountAliases < ActiveRecord::Migration[5.2] + def change + create_table :account_aliases do |t| + t.belongs_to :account, foreign_key: { on_delete: :cascade } + t.string :acct, null: false, default: '' + t.string :uri, null: false, default: '' + + t.timestamps + end + end +end |