method

create_table

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: SchemaMigration
create_table(limit=nil) 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/schema_migration.rb, line 16
    def self.create_table(limit=nil)
      unless connection.table_exists?(table_name)
        version_options = {null: false}
        version_options[:limit] = limit if limit

        connection.create_table(table_name, id: false) do |t|
          t.column :version, :string, version_options
        end
        connection.add_index table_name, :version, unique: true, name: index_name
      end
    end
Register or log in to add new notes.