Sha256: 8d1321cd3d9905dc8027856ec636685cf8c5543b457b44191d9d7d73d712f4a6

Contents?: true

Size: 197 Bytes

Versions: 3

Compression:

Stored size: 197 Bytes

Contents

class CreateAlbums < ActiveRecord::Migration[7.1]
  def change
    create_table :albums do |t|
      t.string :name

      t.timestamps
    end
    add_index :albums, :name, unique: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
recommender-2.0.1 spec/test_app/db/migrate/20240621102016_create_albums.rb
recommender-2.0.0 spec/test_app/db/migrate/20240621102016_create_albums.rb
recommender-0.1.0 spec/test_app/db/migrate/20240621102016_create_albums.rb