Sha256: 4dbefc81f3ed8d0e1a6980d209b23d0dd4ccb50f61a16366f1f2f6c37331736d
Contents?: true
Size: 439 Bytes
Versions: 10
Compression:
Stored size: 439 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 add_index :spud_photo_albums_photos, :spud_photo_album_id end end
Version data entries
10 entries across 10 versions & 1 rubygems