Sha256: 2b9af8a6de20bca5d356c9544f7e321de7663a46535ff311e58a7233290f2297

Contents?: true

Size: 517 Bytes

Versions: 15

Compression:

Stored size: 517 Bytes

Contents

class CreatePolygalleries < ActiveRecord::Migration
  def change
    create_table :polygallery_galleries do |t|
      t.string :title, :default => 'gallery'
      t.integer :default_photo_id
      t.integer :galleryable_id
      t.string :galleryable_type
      t.string :class_name

      t.timestamps
    end
    create_table :polygallery_photos do |t|
      t.integer :gallery_id
      t.attachment :photo
      t.string :title
      t.text :caption
      t.string :class_name

      t.timestamps
    end
  end
end

Version data entries

15 entries across 9 versions & 1 rubygems

Version Path
polygallery-0.2.3 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.2.1 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.1.9 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.1.9 lib/generators/polygallery/install/templates/polygallery_migration.rb
polygallery-0.1.8 lib/generators/polygallery/install/templates/polygallery_migration.rb
polygallery-0.1.8 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.1.7 lib/generators/polygallery/install/templates/polygallery_migration.rb
polygallery-0.1.7 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.1.6 lib/generators/polygallery/install/templates/polygallery_migration.rb
polygallery-0.1.6 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.1.4 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.1.4 lib/generators/polygallery/install/templates/polygallery_migration.rb
polygallery-0.1.2 test/dummy/db/migrate/20150320165705_create_polygalleries.rb
polygallery-0.1.2 lib/generators/polygallery/install/templates/polygallery_migration.rb
polygallery-0.1.1 lib/generators/polygallery/install/templates/polygallery_migration.rb