about summary refs log tree commit diff
path: root/db/migrate/20190915194355_create_account_aliases.rb
blob: 32ce031d91884c58c3165cfd86c663ec9fdd1120 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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