Sha256: 3bc3660538744aa5e50f7aaed32c5d76a0d78e56b7ddd75ff4fea00d95104d11

Contents?: true

Size: 278 Bytes

Versions: 8

Compression:

Stored size: 278 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
      t.timestamps null: false
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubypitaya-2.11.2 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.11.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.11.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.10.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.9.3 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.9.2 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.9.1 ./lib/rubypitaya/core/templates/template_migration.rb.erb
rubypitaya-2.9.0 ./lib/rubypitaya/core/templates/template_migration.rb.erb