Sha256: eeaa5e6300456e0c48973514feb7cc95ff47b788c26eea1a6beab53d870ad223
Contents?: true
Size: 525 Bytes
Versions: 12
Compression:
Stored size: 525 Bytes
Contents
class CreateSpudPhotoGalleries < ActiveRecord::Migration 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
12 entries across 12 versions & 2 rubygems