method

create_table

rails latest stable - Class: ActiveRecord::SchemaMigration

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

create_table()
public

No documentation available.

# File activerecord/lib/active_record/schema_migration.rb, line 21
      def create_table
        unless connection.table_exists?(table_name)
          connection.create_table(table_name, id: false) do |t|
            t.string :version, **connection.internal_string_options_for_primary_key
          end
        end
      end