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-1.0.11 lib/superstore/schema.rb
superstore-1.0.10 lib/superstore/schema.rb
superstore-1.0.9 lib/superstore/schema.rb
superstore-1.0.8 lib/superstore/schema.rb
superstore-1.0.7 lib/superstore/schema.rb
superstore-1.0.6 lib/superstore/schema.rb
superstore-1.0.5 lib/superstore/schema.rb
superstore-1.0.4 lib/superstore/schema.rb
superstore-1.0.3 lib/superstore/schema.rb
superstore-1.0.2 lib/superstore/schema.rb
superstore-1.0.0 lib/superstore/schema.rb