Skip to content

Instantly share code, notes, and snippets.

@ysv
Last active January 29, 2020 15:13
Show Gist options
  • Save ysv/2a704d6d81db102250a74870e1275ca5 to your computer and use it in GitHub Desktop.
Save ysv/2a704d6d81db102250a74870e1275ca5 to your computer and use it in GitHub Desktop.
# frozen_string_literal: true
class RemoveLegacyUsers < ActiveRecord::Migration[6.0]
def change
add_index :asset_proposals, %i[code owner_id], unique: true
add_index :asset_proposals, %i[contract_address owner_id], unique: true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment