Sha256: 1e177c0efcb7486d7f449dae3d40795d7fab86ee253894cc48ad50e0b5c98885

Contents?: true

Size: 334 Bytes

Versions: 8

Compression:

Stored size: 334 Bytes

Contents

class CreateCollectionAlbums < ActiveRecord::Migration
  def self.up
    create_table Refinery::PhotoGallery::CollectionAlbum.table_name do |t| #TODO primary id to false
      t.references :collection
      t.references :album
    end
  end

  def self.down
    drop_table Refinery::PhotoGallery::CollectionAlbum.table_name
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
refinerycms-photo-gallery-0.2.0 db/migrate/20120805131547_create_collection_albums.rb
refinerycms-photo-gallery-0.1.2 db/migrate/20120805131547_create_collection_albums.rb
refinerycms-photo-gallery-0.1.1 db/migrate/20120805131547_create_collection_albums.rb
refinerycms-photo-gallery-0.1.0 db/migrate/20120805131547_create_collection_albums.rb
refinerycms-6hoursdaily-photo-gallery-0.0.5.dev db/migrate/20120805131547_create_collection_albums.rb
refinerycms-6hoursdaily-photo-gallery-0.0.4.dev db/migrate/20120805131547_create_collection_albums.rb
refinerycms-photo-gallery-0.0.2.dev db/migrate/20120805131547_create_collection_albums.rb
refinerycms-photo-gallery-0.0.1.dev db/migrate/20120805131547_create_collection_albums.rb