# This migration comes from refinery_gallery_links (originally 1) class CreateGalleryLinksGalleryLinks < ActiveRecord::Migration def up create_table :refinery_gallery_links do |t| t.string :title t.string :url t.string :photographer t.text :description t.integer :image_id t.integer :position t.timestamps end end def down if defined?(::Refinery::UserPlugin) ::Refinery::UserPlugin.destroy_all({:name => "refinerycms-gallery_links"}) end if defined?(::Refinery::Page) ::Refinery::Page.delete_all({:link_url => "/gallery_links/gallery_links"}) end drop_table :refinery_gallery_links end end