def dump
      stream << <<-EOS
# This file describes the keyspace-agnostic schema
# for this application's environments.
#
# It is the definitive source of the current state
# of the schema and should not be modified directly.
#
# It is strongly recommened that this schema file be checked into source control.
#
# Use `cassie` commands to apply this schema to a particular environment:
# * Load this schema with `cassie schema:load`
# * Reset the schema to this definition with `cassie schema:reset`
Cassie::Schema.define do

EOS
      stream << "  create_schema <<-EOS\n"
      stream << "#{keyspace_agnostic_cql}\n"
      stream << "EOS\n"
      stream << "\n\n"
      versions.each do |v|
        stream << "  record_version #{version_arg_str(v)}\n"
      end
      stream << "end\n"

      close_stream
    end
def dump
      stream << <<-EOS
# This file describes the keyspace-agnostic schema
# for this application's environments.
#
# It is the definitive source of the current state
# of the schema and should not be modified directly.
#
# It is strongly recommened that this schema file be checked into source control.
#
# Use `cassie` commands to apply this schema to a particular environment:
# * Load this schema with `cassie schema:load`
# * Reset the schema to this definition with `cassie schema:reset`
Cassie::Schema.define do

EOS
      stream << "  create_schema <<-EOS\n"
      stream << "#{keyspace_agnostic_cql}\n"
      stream << "EOS\n"
      stream << "\n\n"
      versions.each do |v|
        stream << "  record_version #{version_arg_str(v)}\n"
      end
      stream << "end\n"

      close_stream
    end
Dump the CQL for the current environment's keyspace,
 the schema metadata keyspace, and the versions rows
 that are currently in the schema versions table.