aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-12-17 12:37:40 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-12-17 12:37:40 +0100
commit189407cc44275016a0b00798a3dac704f870f8c0 (patch)
tree25e56578e3d3979ccf10934f3d8c42177d82c0dc /db
parent09b23f8457bb1a3c26d10ffbfab930176d984015 (diff)
downloadhmnoweb-189407cc44275016a0b00798a3dac704f870f8c0.tar.gz
hmnoweb-189407cc44275016a0b00798a3dac704f870f8c0.tar.bz2
hmnoweb-189407cc44275016a0b00798a3dac704f870f8c0.zip
Install GalleryLinks extension into main app.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20171217104241_create_gallery_links_gallery_links.refinery_gallery_links.rb31
-rw-r--r--db/schema.rb13
-rw-r--r--db/seeds.rb3
3 files changed, 46 insertions, 1 deletions
diff --git a/db/migrate/20171217104241_create_gallery_links_gallery_links.refinery_gallery_links.rb b/db/migrate/20171217104241_create_gallery_links_gallery_links.refinery_gallery_links.rb
new file mode 100644
index 0000000..03a5865
--- /dev/null
+++ b/db/migrate/20171217104241_create_gallery_links_gallery_links.refinery_gallery_links.rb
@@ -0,0 +1,31 @@
+# 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
diff --git a/db/schema.rb b/db/schema.rb
index 4d3fe93..512de33 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20151210191646) do
+ActiveRecord::Schema.define(:version => 20171217104241) do
create_table "refinery_banners", :force => true do |t|
t.string "name"
@@ -115,6 +115,17 @@ ActiveRecord::Schema.define(:version => 20151210191646) do
add_index "refinery_blog_posts", ["id"], :name => "index_refinery_blog_posts_on_id"
add_index "refinery_blog_posts", ["slug"], :name => "index_refinery_blog_posts_on_slug"
+ create_table "refinery_gallery_links", :force => true do |t|
+ t.string "title"
+ t.string "url"
+ t.string "photographer"
+ t.text "description"
+ t.integer "image_id"
+ t.integer "position"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
create_table "refinery_image_page_translations", :force => true do |t|
t.integer "refinery_image_page_id"
t.string "locale"
diff --git a/db/seeds.rb b/db/seeds.rb
index 7391f95..f351030 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -19,3 +19,6 @@ Refinery::Inquiries::Engine.load_seed
Refinery::Search::Engine.load_seed
Refinery::Banners::Engine.load_seed
+
+# Added by Refinery CMS GalleryLinks extension
+Refinery::GalleryLinks::Engine.load_seed