Sha256: 9dc58f3ed29f877d95451eca36404df9023f645b4fddbba38d19e6acd4318f62

Contents?: true

Size: 297 Bytes

Versions: 8

Compression:

Stored size: 297 Bytes

Contents

require 'active_record'

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

  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

8 entries across 8 versions & 1 rubygems

Version Path
rubypitaya-3.0.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-3.0.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.27.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.27.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.26.3 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.26.2 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.26.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.26.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb