Sha256: b9907b5ff830cb43b6627347f79065e4a921efe1c8e0e00e5ddc492ad48362ed

Contents?: true

Size: 297 Bytes

Versions: 12

Compression:

Stored size: 297 Bytes

Contents

require 'active_record'

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

  enable_extension 'pgcrypto'

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rubypitaya-2.25.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.25.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.24.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.23.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.22.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.21.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.20.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.19.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.19.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.18.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.17.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.16.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb