Sha256: c606d5f4fbd1823815c5ba0962facdfa6a71e5c061c8338d37dcba84076ab237
Contents?: true
Size: 854 Bytes
Versions: 23
Compression:
Stored size: 854 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 connection.ddl_batch do create_table :singers do |t| t.string :first_name t.string :last_name # Create a `last_updated` column that supports server side commit timestamps. t.datetime :last_updated, allow_commit_timestamp: true end create_table :albums do |t| t.string :title t.numeric :marketing_budget t.references :singer, index: false, foreign_key: true # Create a `last_updated` column that supports server side commit timestamps. t.datetime :last_updated, allow_commit_timestamp: true end end end end
Version data entries
23 entries across 23 versions & 1 rubygems