Sha256: fa038ca6f46f0ca14fa4c1afa54acbd8bd4c0eb78bd345a23cfa3e67ca027039

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

class CreateCollectionAlbums < ActiveRecord::Migration[4.2]
  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

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-photo-gallery-0.3.0 db/migrate/20120805131547_create_collection_albums.rb