20190915194355_create_account_aliases.rb 340 B

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