Sha256: 14f4a3f02f20b3d8d30339778c25dc973a8cbaf764fa7aa61bc9bffd37a6ea6e

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

require 'active_record'

class <%= class_name %> < ActiveRecord::Migration[5.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

6 entries across 6 versions & 1 rubygems

Version Path
rubypitaya-2.15.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.14.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.14.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.13.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.13.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.12.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb