20190915194355_create_account_aliases.rb 309 B

1234567891011
  1. class CreateAccountAliases < ActiveRecord::Migration[5.2]
  2. def change
  3. create_table :account_aliases do |t|
  4. t.belongs_to :account, foreign_key: { on_delete: :cascade }
  5. t.string :acct, null: false, default: ''
  6. t.string :uri, null: false, default: ''
  7. t.timestamps
  8. end
  9. end
  10. end