Sha256: 1006f5cd49bd7a3543ccbb2e711dbca1d3de247b3b7a64f49daa178b55fb11a2
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
class CreateSpudPhotoAlbums < ActiveRecord::Migration[4.2] def change create_table :spud_photo_albums do |t| t.string :title t.string :url_name t.timestamps end create_table :spud_photo_albums_photos, id: false do |t| t.integer :spud_photo_album_id t.integer :spud_photo_id end add_index :spud_photo_albums, :url_name, name: 'idx_album_url_name' add_index :spud_photo_albums_photos, :spud_photo_album_id, name: 'idx_album_id' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tb_photos-1.2.0 | db/migrate/20120228232329_create_spud_photo_albums.rb |