Sha256: 1ad27104692d36e9bf5543e9c86a27b7685898fff117e98075b8194691bf18ac

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

class CreateSpudPhotoGalleries < ActiveRecord::Migration[4.2]
  def change
    create_table :spud_photo_galleries do |t|
      t.string :title
      t.string :url_name
      t.timestamps
    end
    create_table :spud_photo_galleries_albums, id: false do |t|
      t.integer :spud_photo_gallery_id
      t.integer :spud_photo_album_id
    end
    add_index :spud_photo_galleries, :url_name, name: 'idx_gallery_url_name'
    add_index :spud_photo_galleries_albums, :spud_photo_gallery_id, name: 'idx_gallery_id'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tb_photos-1.2.0 db/migrate/20120228232344_create_spud_photo_galleries.rb