Flowdock
method

insert_versions_sql

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
insert_versions_sql(versions) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1006
      def insert_versions_sql(versions) # :nodoc:
        sm_table = quote_table_name(ActiveRecord::SchemaMigration.table_name)

        if versions.is_a?(Array)
          sql = "INSERT INTO #{sm_table} (version) VALUES\n"
          sql << versions.map { |v| "(#{quote(v)})" }.join(",\n")
          sql << ";\n\n"
          sql
        else
          "INSERT INTO #{sm_table} (version) VALUES (#{quote(versions)});"
        end
      end
Register or log in to add new notes.