Method: ActiveRecord::SchemaMigration#create_table
- Defined in:
- activerecord/lib/active_record/schema_migration.rb
#create_table ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'activerecord/lib/active_record/schema_migration.rb', line 53 def create_table @pool.with_connection do |connection| unless connection.table_exists?(table_name) connection.create_table(table_name, id: false) do |t| t.string :version, **connection. end end end end |