method

create_table_and_set_flags

create_table_and_set_flags(environment, schema_sha1 = nil)
public

No documentation available.

# File activerecord/lib/active_record/internal_metadata.rb, line 74
    def create_table_and_set_flags(environment, schema_sha1 = nil)
      return unless enabled?

      @pool.with_connection do |connection|
        create_table
        update_or_create_entry(connection, :environment, environment)
        update_or_create_entry(connection, :schema_sha1, schema_sha1) if schema_sha1
      end
    end