Sha256: 5f65b289ddb25c4c2e8dce1999600ff2b4d46474705f42e6e9c2172d59af397e

Contents?: true

Size: 420 Bytes

Versions: 69

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module DeclareSchema
  module SchemaChange
    class TableRemove < Base
      def initialize(table_name, add_table_back)
        @table_name = table_name
        @add_table_back = add_table_back
      end

      def up_command
        "drop_table #{@table_name.to_sym.inspect}"
      end

      def down_command
        @add_table_back
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
declare_schema-1.4.0.colin.6 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.4.0.colin.5 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.4.0.colin.4 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.4.0.colin.3 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.4.0.colin.2 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.4.0.colin.1 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.3.2 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.3.2.rp.1 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.3.1 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.3.1.colin.1 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.3.0 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.3.0.colin.1 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3.pre.ga.11 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3.pre.ga.10 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3.pre.ga.9 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3.pre.ga.8 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3.pre.ga.7 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3.pre.ga.6 lib/declare_schema/schema_change/table_remove.rb
declare_schema-1.2.3.pre.ga.5 lib/declare_schema/schema_change/table_remove.rb