Sha256: 0c1d593a9debfb68a110403c8add7fbf44749c30f45d941afdae3fca5d880895

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

Stored size: 448 Bytes

Contents

require 'active_record'

class <%= class_name %> < ActiveRecord::Migration[7.0]

  # Migration suported types reference: https://guides.rubyonrails.org/v3.2/migrations.html#supported-types

  def change
    create_table :[table-name-here-in-plural] do |t|
      # t.belongs_to :user, type: :uuid, foreing_key: true
      # t.belongs_to :user, type: :uuid, foreing_key: true, index: { unique: true }
      t.timestamps null: false
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubypitaya-3.19.6 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-3.19.5 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-3.19.4 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-3.19.3 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-3.19.2 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-3.19.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-3.19.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb