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