Sha256: 89c25f2d8fe594fb3ee3b273013ba48b68ce2e81b8ca96d19a9f07e9413a4850

Contents?: true

Size: 389 Bytes

Versions: 69

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

require_relative 'foreign_key_add'

module DeclareSchema
  module SchemaChange
    class ForeignKeyRemove < ForeignKeyAdd
      alias index_add_up_command up_command
      alias index_add_down_command down_command

      def up_command
        index_add_down_command
      end

      def down_command
        index_add_up_command
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
declare_schema-0.13.0.pre.2 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.13.0.pre.1 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.12.1 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.12.0 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.12.0.pre.2 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.12.0.pre.1 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.11.1 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.11.0 lib/declare_schema/schema_change/foreign_key_remove.rb
declare_schema-0.10.1 lib/declare_schema/schema_change/foreign_key_remove.rb