Sha256: 399ca9f679f2822bb7a2c1923f51e786406b98d0b8801a4290c783039381b452
Contents?: true
Size: 667 Bytes
Versions: 24
Compression:
Stored size: 667 Bytes
Contents
# Copyright 2021 Google LLC # # Use of this source code is governed by an MIT-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT. class CreateTables < ActiveRecord::Migration[6.0] def change # Execute the entire migration as one DDL batch. connection.ddl_batch do create_table :singers do |t| t.string :first_name t.string :last_name end create_table :albums do |t| t.string :title t.references :singers end create_table :tracks do |t| t.string :title t.numeric :duration t.references :albums end end end end
Version data entries
24 entries across 24 versions & 1 rubygems