Sha256: 3d36d43378dc6e5948485d9d780b1605fe450103145134d80c58e1f3bdd171da

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

class CreateTanshukuUrls < ActiveRecord::Migration[5.1]
  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-1.0.1 db/migrate/20230220123456_create_tanshuku_urls.rb
tanshuku-1.0.0 db/migrate/20230220123456_create_tanshuku_urls.rb