Sha256: a961475047d0192df0735d83f383819e3adb0627026f61afa62ff9a8df22cb08

Contents?: true

Size: 343 Bytes

Versions: 31

Compression:

Stored size: 343 Bytes

Contents

module Superstore
  class Schema
    class << self
      def create_table(table_name, options = {})
        adapter.create_table table_name, options
      end

      def drop_table(table_name)
        adapter.drop_table table_name
      end

      private

        def adapter
          Superstore::Base.adapter
        end

    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
superstore-2.4.4 lib/superstore/schema.rb
superstore-2.4.3 lib/superstore/schema.rb
superstore-2.4.2 lib/superstore/schema.rb
superstore-2.4.1 lib/superstore/schema.rb
superstore-2.4.0 lib/superstore/schema.rb
superstore-2.3.0 lib/superstore/schema.rb
superstore-2.2.0 lib/superstore/schema.rb
superstore-2.1.3 lib/superstore/schema.rb
superstore-2.1.2 lib/superstore/schema.rb
superstore-2.1.1 lib/superstore/schema.rb
superstore-2.1.0 lib/superstore/schema.rb
superstore-2.0.1 lib/superstore/schema.rb
superstore-2.0.0 lib/superstore/schema.rb
superstore-1.2.0 lib/superstore/schema.rb
superstore-1.1.4 lib/superstore/schema.rb
superstore-1.1.3 lib/superstore/schema.rb
superstore-1.1.2 lib/superstore/schema.rb
superstore-1.1.1 lib/superstore/schema.rb
superstore-1.1.0 lib/superstore/schema.rb
superstore-1.0.12 lib/superstore/schema.rb