Sha256: e8926cc91ec26c9dedd0a9c22b0a1384b679cfef5e44cb45afa51525928193d4
Contents?: true
Size: 624 Bytes
Versions: 23
Compression:
Stored size: 624 Bytes
Contents
class AddConstraintsToMostRecentForUserExportFileTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :user_export_file_transitions, [:user_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_export_file_transitions_parent_most_recent" # , algorithm: :concurrently change_column_null :user_export_file_transitions, :most_recent, false end def down remove_index :user_export_file_transitions, name: "index_user_export_file_transitions_parent_most_recent" change_column_null :user_export_file_transitions, :most_recent, true end end
Version data entries
23 entries across 23 versions & 5 rubygems