gab-social/db/migrate/20201222040559_create_accou...

11 lines
351 B
Ruby

class CreateAccountUsernameChanges < ActiveRecord::Migration[5.2]
def change
create_table :account_username_changes do |t|
t.belongs_to :account, foreign_key: { on_delete: :cascade }, null: false
t.text :from_username, null: false, default: ''
t.text :to_username, null: false, default: ''
t.timestamps
end
end
end