Sha256: 89d0e51d7ea543efac4aedc894ed208cff21d4d256c078602982079081db1fc9

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

class CreateTanshukuUrls < ActiveRecord::Migration[6.0]
  def change
    create_table :tanshuku_urls do |t|
      t.text :url, null: false
      t.string :hashed_url, null: false, limit: 128, index: { unique: true }, comment: "cf. Tanshuku::Url.hash_url"
      t.string :key, null: false, limit: 20, index: { unique: true }, comment: "cf. Tanshuku::Url.generate_key"
      t.datetime :created_at, null: false, precision: nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tanshuku-2.0.1 db/migrate/20230220123456_create_tanshuku_urls.rb
tanshuku-2.0.0 db/migrate/20230220123456_create_tanshuku_urls.rb