virgo 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ff950f99ef9fb628b1a03ff46b201f033b8f9a6
4
- data.tar.gz: c7364a815fd22182ca59ff290695973f8a4f7e50
3
+ metadata.gz: 27b645f8978d61b8b0324df45f5b08e710ab35f6
4
+ data.tar.gz: f545e49f74cd6b21b89f2194ec7b8128817e2895
5
5
  SHA512:
6
- metadata.gz: 1731f668348175749b3e0401f5d57fc49c7bb7a049924325b0125f68fda1879cc873cb446545345d02e249267371792ae9ed49198bf42a4fc5b80fe3a9d02d8d
7
- data.tar.gz: d7559fcb825bb4a2927f10f654f01c0b29f1a8e37e7ecc8114efa6edf99abc4a56bd32d8358cdd776705fc26c97266206445c0e4dd21ad4f643e5bbcd3a6e304
6
+ metadata.gz: 7b387eb698aba192a5b6a76c9aef4778399b4e29a687a149f0198b3113c549386f7ba9dd4c6d4d7ceeb216157a4bb3f993193cfaf66cdaefb972b2f9dbd03b84
7
+ data.tar.gz: fd98543c01c0af1e2b446a8b12fb0ffd95d7beaccc86d902ccc481e04caeabf08e5826cd77c408124856ec7c1f84a9a9aae3612df69800d5978ce8d17de40aba
@@ -3,7 +3,7 @@ module Virgo
3
3
  source_root File.expand_path('../../../../..', __FILE__)
4
4
 
5
5
  def copy_migrations
6
- timestamp_str = Time.strftime("%Y%m%d%H%M%S").to_s
6
+ timestamp_str = Time.now.strftime("%Y%m%d%H%M%S").to_s
7
7
  src_path = "#{engine_root}/db/migrate/create_virgo_schema.rb"
8
8
  dest_path = "#{Rails.root}/db/migrate/#{timestamp_str}_create_virgo_schema.rb"
9
9
 
data/lib/virgo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Virgo
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
@@ -40,6 +40,8 @@
40
40
  = javascript_include_tag "virgo/application"
41
41
  = csrf_meta_tags
42
42
  = render '/virgo/common/header_analytics'
43
+ - if site.style_overrides.present?
44
+ %style= raw site.style_overrides
43
45
  :coffee
44
46
  window.page_url = "#{page_url}";
45
47
 
@@ -16,15 +16,7 @@
16
16
  fjs.parentNode.insertBefore(js, fjs);
17
17
  }(document, 'script', 'facebook-jssdk'));
18
18
  </script>
19
-
20
19
  <div id="fb-root"></div>
21
- <script>(function(d, s, id) {
22
- var js, fjs = d.getElementsByTagName(s)[0];
23
- if (d.getElementById(id)) return;
24
- js = d.createElement(s); js.id = id;
25
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3&appId=<%= Rails.application.secrets.facebook_app_id %>";
26
- fjs.parentNode.insertBefore(js, fjs);
27
- }(document, 'script', 'facebook-jssdk'));</script>
28
20
  <% else %>
29
21
  <script> window.fb_api_disabled = true </script>
30
22
  <% end %>
@@ -0,0 +1,227 @@
1
+ class CreateVirgoSchema < ActiveRecord::Migration
2
+ def change
3
+ # These are extensions that must be enabled in order to support this database
4
+ enable_extension "plpgsql"
5
+ enable_extension "pg_trgm"
6
+ enable_extension "hstore"
7
+
8
+ create_table "versions" do |t|
9
+ t.string "item_type", null: false, index: {name: "index_versions_on_item_type_and_item_id", with: ["item_id"]}
10
+ t.integer "item_id", null: false
11
+ t.string "event", null: false
12
+ t.string "whodunnit"
13
+ t.text "object"
14
+ t.datetime "created_at"
15
+ t.text "object_changes"
16
+ end
17
+
18
+ create_table "virgo_categories" do |t|
19
+ t.string "name", index: {name: "index_virgo_categories_on_name"}
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
+ t.integer "parent_id", index: {name: "index_virgo_categories_on_parent_id"}
23
+ t.string "slug", index: {name: "index_virgo_categories_on_slug"}
24
+ t.integer "created_by_id", index: {name: "index_virgo_categories_on_created_by_id"}
25
+ t.boolean "display_in_navbar", index: {name: "index_virgo_categories_on_display_in_navbar"}
26
+ t.integer "navbar_weight", default: 0, index: {name: "index_virgo_categories_on_navbar_weight"}
27
+ t.boolean "visible", default: true, index: {name: "index_virgo_categories_on_visible"}
28
+ end
29
+
30
+ create_table "virgo_columns" do |t|
31
+ t.string "name"
32
+ t.string "slug", index: {name: "index_virgo_columns_on_slug"}
33
+ t.text "description"
34
+ t.string "image"
35
+ t.integer "weight", default: 0, index: {name: "index_virgo_columns_on_weight"}
36
+ t.datetime "created_at"
37
+ t.datetime "updated_at"
38
+ end
39
+
40
+ create_table "virgo_images" do |t|
41
+ t.integer "user_id", index: {name: "index_virgo_images_on_user_id"}
42
+ t.string "name", index: {name: "index_virgo_images_on_name"}
43
+ t.string "slug", index: {name: "index_virgo_images_on_slug"}
44
+ t.string "image"
45
+ t.integer "width"
46
+ t.integer "height"
47
+ t.text "data_file_name"
48
+ t.text "data_content_type"
49
+ t.integer "data_file_size"
50
+ t.datetime "created_at"
51
+ t.datetime "updated_at"
52
+ t.text "alt_text"
53
+ t.text "description"
54
+ t.text "credit"
55
+ end
56
+
57
+ create_table "virgo_page_module_posts" do |t|
58
+ t.integer "page_module_id", index: {name: "index_virgo_page_module_posts_on_page_module_id"}
59
+ t.integer "post_id", index: {name: "index_virgo_page_module_posts_on_post_id"}
60
+ t.integer "position"
61
+ t.datetime "created_at"
62
+ t.datetime "updated_at"
63
+ end
64
+
65
+ create_table "virgo_page_modules" do |t|
66
+ t.string "name"
67
+ t.string "template_path"
68
+ t.boolean "enabled", index: {name: "index_virgo_page_modules_on_enabled"}
69
+ t.integer "weight", default: 0, index: {name: "index_virgo_page_modules_on_weight"}
70
+ t.datetime "created_at"
71
+ t.datetime "updated_at"
72
+ t.integer "subject_id", index: {name: "index_virgo_page_modules_on_subject_id"}
73
+ t.string "subject_type", index: {name: "index_virgo_page_modules_on_subject_type"}
74
+ t.boolean "editable_subject", default: false
75
+ t.string "image"
76
+ t.boolean "can_set_posts", default: false
77
+ t.boolean "hidden_from_admins", default: false
78
+ t.boolean "has_image", default: false
79
+ end
80
+
81
+ create_table "virgo_post_categories" do |t|
82
+ t.integer "post_id", index: {name: "index_virgo_post_categories_on_post_id"}
83
+ t.integer "category_id", index: {name: "index_virgo_post_categories_on_category_id"}
84
+ end
85
+
86
+ create_table "virgo_post_tags" do |t|
87
+ t.integer "post_id", index: {name: "index_virgo_post_tags_on_post_id"}
88
+ t.integer "tag_id", index: {name: "index_virgo_post_tags_on_tag_id"}
89
+ t.integer "position", default: 0, index: {name: "index_virgo_post_tags_on_position"}
90
+ end
91
+
92
+ create_table "virgo_posts" do |t|
93
+ t.string "post_type", default: "post", index: {name: "index_virgo_posts_on_post_type"}
94
+ t.string "slug", index: {name: "index_virgo_posts_on_slug"}
95
+ t.integer "author_id", index: {name: "index_virgo_posts_on_author_id"}
96
+ t.text "headline"
97
+ t.text "subhead"
98
+ t.text "excerpt"
99
+ t.text "body"
100
+ t.string "status", default: "draft", index: {name: "index_virgo_posts_on_status"}
101
+ t.datetime "publish_at", index: {name: "index_virgo_posts_on_publish_at"}
102
+ t.boolean "feature_on_front_page", default: false, index: {name: "index_virgo_posts_on_feature_on_front_page"}
103
+ t.boolean "feature_on_category_page", default: false, index: {name: "index_virgo_posts_on_feature_on_category_page"}
104
+ t.boolean "show_excerpt", default: true
105
+ t.text "citation_name"
106
+ t.text "citation_url"
107
+ t.datetime "created_at"
108
+ t.datetime "updated_at", index: {name: "index_virgo_posts_on_updated_at"}
109
+ t.integer "created_by_id", index: {name: "index_virgo_posts_on_created_by_id"}
110
+ t.string "title_tag_text"
111
+ t.text "meta_description_tag_value"
112
+ t.integer "editing_user_id", index: {name: "index_virgo_posts_on_editing_user_id"}
113
+ t.datetime "editing_timestamp", index: {name: "index_virgo_posts_on_editing_timestamp"}
114
+ t.boolean "live", default: true, index: {name: "index_virgo_posts_on_live"}
115
+ t.integer "view_count", default: 0, index: {name: "index_virgo_posts_on_view_count"}
116
+ t.integer "featured_image_id"
117
+ t.text "search_document", index: {name: "virgo_post_search_document_index", using: :gin, operator_class: "gin_trgm_ops"}
118
+ t.string "uuid", index: {name: "index_virgo_posts_on_uuid"}
119
+ t.integer "column_id", index: {name: "index_virgo_posts_on_column_id"}
120
+ t.boolean "comments_enabled", default: false
121
+ t.boolean "show_feature_image_on_post_page", default: true
122
+ t.hstore "meta"
123
+ t.decimal "popularity", precision: 12, scale: 3, index: {name: "index_virgo_posts_on_popularity"}
124
+ t.integer "thumbnail_image_id", index: {name: "index_virgo_posts_on_thumbnail_image_id"}
125
+ end
126
+
127
+ create_table "virgo_sites" do |t|
128
+ t.text "tagline"
129
+ t.datetime "created_at"
130
+ t.datetime "updated_at"
131
+ t.boolean "recommendations_enabled", default: true
132
+ t.text "name"
133
+ t.text "description"
134
+ t.text "style_overrides"
135
+ t.string "disqus_app_id"
136
+ t.string "twitter_handle"
137
+ t.string "instagram_account_name"
138
+ t.string "pinterest_account_name"
139
+ end
140
+
141
+ create_table "virgo_slides" do |t|
142
+ t.text "text"
143
+ t.integer "slideshow_id", index: {name: "index_virgo_slides_on_slideshow_id"}
144
+ t.integer "position", index: {name: "index_virgo_slides_on_position"}
145
+ t.datetime "created_at"
146
+ t.datetime "updated_at"
147
+ t.text "video_embed"
148
+ t.text "title"
149
+ t.integer "image_id", index: {name: "fk__virgo_slides_image_rel_id"}, foreign_key: {references: "virgo_images", name: "fk_virgo_slides_image_rel_id", on_update: :no_action, on_delete: :no_action}
150
+ end
151
+ add_index "virgo_slides", ["image_id"], name: "index_virgo_slides_on_image_id"
152
+
153
+ create_table "virgo_slideshows" do |t|
154
+ t.integer "author_id", index: {name: "index_virgo_slideshows_on_author_id"}
155
+ t.string "name"
156
+ t.datetime "created_at"
157
+ t.datetime "updated_at"
158
+ end
159
+
160
+ create_table "virgo_slug_histories" do |t|
161
+ t.integer "record_id", index: {name: "index_virgo_slug_histories_on_record_id"}
162
+ t.string "record_type", index: {name: "index_virgo_slug_histories_on_record_type"}
163
+ t.string "slug", index: {name: "index_virgo_slug_histories_on_slug"}
164
+ t.datetime "created_at"
165
+ t.datetime "updated_at"
166
+ end
167
+
168
+ create_table "virgo_subscribers" do |t|
169
+ t.string "email", index: {name: "index_virgo_subscribers_on_email"}
170
+ t.boolean "subscribed", default: true
171
+ t.datetime "created_at"
172
+ t.datetime "updated_at"
173
+ end
174
+
175
+ create_table "virgo_tags" do |t|
176
+ t.string "name", index: {name: "index_virgo_tags_on_name"}
177
+ t.datetime "created_at"
178
+ t.datetime "updated_at"
179
+ t.string "slug", index: {name: "index_virgo_tags_on_slug"}
180
+ t.integer "created_by_id", index: {name: "index_virgo_tags_on_created_by_id"}
181
+ end
182
+
183
+ create_table "virgo_users" do |t|
184
+ t.string "email", default: "", null: false, index: {name: "index_virgo_users_on_email"}
185
+ t.string "encrypted_password", default: "", null: false
186
+ t.string "reset_password_token"
187
+ t.datetime "reset_password_sent_at"
188
+ t.datetime "remember_created_at"
189
+ t.integer "sign_in_count", default: 0
190
+ t.datetime "current_sign_in_at"
191
+ t.datetime "last_sign_in_at"
192
+ t.string "current_sign_in_ip"
193
+ t.string "last_sign_in_ip"
194
+ t.string "confirmation_token"
195
+ t.datetime "confirmed_at"
196
+ t.datetime "confirmation_sent_at"
197
+ t.string "unconfirmed_email"
198
+ t.integer "failed_attempts", default: 0
199
+ t.string "unlock_token"
200
+ t.datetime "locked_at"
201
+ t.string "authentication_token"
202
+ t.string "first_name"
203
+ t.string "last_name"
204
+ t.string "role", index: {name: "index_virgo_users_on_role"}
205
+ t.boolean "canceled"
206
+ t.string "avatar"
207
+ t.boolean "active"
208
+ t.boolean "account_on_hold"
209
+ t.string "time_zone"
210
+ t.datetime "created_at"
211
+ t.datetime "updated_at"
212
+ t.string "username", index: {name: "index_virgo_users_on_username"}
213
+ t.string "byline"
214
+ t.text "about"
215
+ t.string "slug", index: {name: "index_virgo_users_on_slug"}
216
+ t.boolean "show_on_authors_page", default: false, index: {name: "index_virgo_users_on_show_on_authors_page"}
217
+ t.integer "author_page_weight", default: 0, index: {name: "index_virgo_users_on_author_page_weight"}
218
+ t.string "twitter_id"
219
+ t.string "facebook_id"
220
+ t.string "instagram_id"
221
+ t.string "pinterest_id"
222
+ t.string "snapchat_id"
223
+ t.string "linkedin_id"
224
+ t.string "public_email"
225
+ end
226
+ end
227
+ end
@@ -143,7 +143,6 @@ ActiveRecord::Schema.define(version: 20150729174510) do
143
143
  t.boolean "recommendations_enabled", default: true
144
144
  t.text "name"
145
145
  t.text "description"
146
- t.text "style_overrides"
147
146
  t.string "disqus_app_id"
148
147
  t.string "twitter_handle"
149
148
  t.string "instagram_account_name"
@@ -1026,3 +1026,262 @@ Processing by Virgo::PostsController#rss as HTML
1026
1026
  Virgo::User Load (0.9ms) SELECT "virgo_users".* FROM "virgo_users" WHERE "virgo_users"."id" = $1 LIMIT 1 [["id", 1]]
1027
1027
  Rendered virgo/posts/rss.xml.builder (1051.7ms)
1028
1028
  Completed 200 OK in 1079ms (Views: 1045.7ms | ActiveRecord: 13.2ms)
1029
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1030
+  (2.7ms) SELECT
1031
+ N.nspname AS schema_name,
1032
+ T.typname AS enum_name,
1033
+ E.enumlabel AS enum_label,
1034
+ E.enumsortorder AS enum_sort_order
1035
+ --array_agg(E.enumlabel ORDER BY enumsortorder) AS labels
1036
+ FROM pg_type T
1037
+ JOIN pg_enum E ON E.enumtypid = T.oid
1038
+ JOIN pg_namespace N ON N.oid = T.typnamespace
1039
+ ORDER BY 1, 2, 4
1040
+
1041
+  (2.4ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1042
+ FROM pg_class t, pg_constraint f
1043
+ WHERE f.conrelid = t.oid
1044
+ AND f.contype = 'f'
1045
+ AND t.relname = 'schema_migrations'
1046
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1047
+ 
1048
+  (0.7ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1049
+ FROM pg_class t, pg_constraint f
1050
+ WHERE f.conrelid = t.oid
1051
+ AND f.contype = 'f'
1052
+ AND t.relname = 'versions'
1053
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1054
+
1055
+  (0.6ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1056
+ FROM pg_class t, pg_constraint f
1057
+ WHERE f.conrelid = t.oid
1058
+ AND f.contype = 'f'
1059
+ AND t.relname = 'virgo_categories'
1060
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1061
+ 
1062
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1063
+ FROM pg_class t, pg_constraint f
1064
+ WHERE f.conrelid = t.oid
1065
+ AND f.contype = 'f'
1066
+ AND t.relname = 'virgo_columns'
1067
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1068
+
1069
+  (0.6ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1070
+ FROM pg_class t, pg_constraint f
1071
+ WHERE f.conrelid = t.oid
1072
+ AND f.contype = 'f'
1073
+ AND t.relname = 'virgo_page_module_posts'
1074
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1075
+ 
1076
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1077
+ FROM pg_class t, pg_constraint f
1078
+ WHERE f.conrelid = t.oid
1079
+ AND f.contype = 'f'
1080
+ AND t.relname = 'virgo_page_modules'
1081
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1082
+
1083
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1084
+ FROM pg_class t, pg_constraint f
1085
+ WHERE f.conrelid = t.oid
1086
+ AND f.contype = 'f'
1087
+ AND t.relname = 'virgo_post_categories'
1088
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1089
+ 
1090
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1091
+ FROM pg_class t, pg_constraint f
1092
+ WHERE f.conrelid = t.oid
1093
+ AND f.contype = 'f'
1094
+ AND t.relname = 'virgo_post_tags'
1095
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1096
+
1097
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1098
+ FROM pg_class t, pg_constraint f
1099
+ WHERE f.conrelid = t.oid
1100
+ AND f.contype = 'f'
1101
+ AND t.relname = 'virgo_posts'
1102
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1103
+ 
1104
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1105
+ FROM pg_class t, pg_constraint f
1106
+ WHERE f.conrelid = t.oid
1107
+ AND f.contype = 'f'
1108
+ AND t.relname = 'virgo_sites'
1109
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1110
+
1111
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1112
+ FROM pg_class t, pg_constraint f
1113
+ WHERE f.conrelid = t.oid
1114
+ AND f.contype = 'f'
1115
+ AND t.relname = 'virgo_images'
1116
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1117
+ 
1118
+  (5.6ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1119
+ FROM pg_class t, pg_constraint f
1120
+ WHERE f.conrelid = t.oid
1121
+ AND f.contype = 'f'
1122
+ AND t.relname = 'virgo_slides'
1123
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1124
+
1125
+  (0.8ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1126
+ FROM pg_class t, pg_constraint f
1127
+ WHERE f.conrelid = t.oid
1128
+ AND f.contype = 'f'
1129
+ AND t.relname = 'virgo_slideshows'
1130
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1131
+ 
1132
+  (0.9ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1133
+ FROM pg_class t, pg_constraint f
1134
+ WHERE f.conrelid = t.oid
1135
+ AND f.contype = 'f'
1136
+ AND t.relname = 'virgo_slug_histories'
1137
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1138
+
1139
+  (0.7ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1140
+ FROM pg_class t, pg_constraint f
1141
+ WHERE f.conrelid = t.oid
1142
+ AND f.contype = 'f'
1143
+ AND t.relname = 'virgo_subscribers'
1144
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1145
+ 
1146
+  (0.6ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1147
+ FROM pg_class t, pg_constraint f
1148
+ WHERE f.conrelid = t.oid
1149
+ AND f.contype = 'f'
1150
+ AND t.relname = 'virgo_tags'
1151
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1152
+
1153
+  (0.6ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1154
+ FROM pg_class t, pg_constraint f
1155
+ WHERE f.conrelid = t.oid
1156
+ AND f.contype = 'f'
1157
+ AND t.relname = 'virgo_users'
1158
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1159
+ 
1160
+  (0.6ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1161
+ FROM pg_class t, pg_constraint f
1162
+ WHERE f.conrelid = t.oid
1163
+ AND f.contype = 'f'
1164
+ AND t.relname = 'versions'
1165
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1166
+
1167
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1168
+ FROM pg_class t, pg_constraint f
1169
+ WHERE f.conrelid = t.oid
1170
+ AND f.contype = 'f'
1171
+ AND t.relname = 'virgo_categories'
1172
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1173
+ 
1174
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1175
+ FROM pg_class t, pg_constraint f
1176
+ WHERE f.conrelid = t.oid
1177
+ AND f.contype = 'f'
1178
+ AND t.relname = 'virgo_columns'
1179
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1180
+
1181
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1182
+ FROM pg_class t, pg_constraint f
1183
+ WHERE f.conrelid = t.oid
1184
+ AND f.contype = 'f'
1185
+ AND t.relname = 'virgo_images'
1186
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1187
+ 
1188
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1189
+ FROM pg_class t, pg_constraint f
1190
+ WHERE f.conrelid = t.oid
1191
+ AND f.contype = 'f'
1192
+ AND t.relname = 'virgo_page_module_posts'
1193
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1194
+
1195
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1196
+ FROM pg_class t, pg_constraint f
1197
+ WHERE f.conrelid = t.oid
1198
+ AND f.contype = 'f'
1199
+ AND t.relname = 'virgo_page_modules'
1200
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1201
+ 
1202
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1203
+ FROM pg_class t, pg_constraint f
1204
+ WHERE f.conrelid = t.oid
1205
+ AND f.contype = 'f'
1206
+ AND t.relname = 'virgo_post_categories'
1207
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1208
+
1209
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1210
+ FROM pg_class t, pg_constraint f
1211
+ WHERE f.conrelid = t.oid
1212
+ AND f.contype = 'f'
1213
+ AND t.relname = 'virgo_post_tags'
1214
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1215
+ 
1216
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1217
+ FROM pg_class t, pg_constraint f
1218
+ WHERE f.conrelid = t.oid
1219
+ AND f.contype = 'f'
1220
+ AND t.relname = 'virgo_posts'
1221
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1222
+
1223
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1224
+ FROM pg_class t, pg_constraint f
1225
+ WHERE f.conrelid = t.oid
1226
+ AND f.contype = 'f'
1227
+ AND t.relname = 'virgo_sites'
1228
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1229
+ 
1230
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1231
+ FROM pg_class t, pg_constraint f
1232
+ WHERE f.conrelid = t.oid
1233
+ AND f.contype = 'f'
1234
+ AND t.relname = 'virgo_slides'
1235
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1236
+
1237
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1238
+ FROM pg_class t, pg_constraint f
1239
+ WHERE f.conrelid = t.oid
1240
+ AND f.contype = 'f'
1241
+ AND t.relname = 'virgo_slideshows'
1242
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1243
+ 
1244
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1245
+ FROM pg_class t, pg_constraint f
1246
+ WHERE f.conrelid = t.oid
1247
+ AND f.contype = 'f'
1248
+ AND t.relname = 'virgo_slug_histories'
1249
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1250
+
1251
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1252
+ FROM pg_class t, pg_constraint f
1253
+ WHERE f.conrelid = t.oid
1254
+ AND f.contype = 'f'
1255
+ AND t.relname = 'virgo_subscribers'
1256
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1257
+ 
1258
+  (0.5ms) SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1259
+ FROM pg_class t, pg_constraint f
1260
+ WHERE f.conrelid = t.oid
1261
+ AND f.contype = 'f'
1262
+ AND t.relname = 'virgo_tags'
1263
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1264
+
1265
+  (0.5ms)  SELECT f.conname, pg_get_constraintdef(f.oid), t.relname
1266
+ FROM pg_class t, pg_constraint f
1267
+ WHERE f.conrelid = t.oid
1268
+ AND f.contype = 'f'
1269
+ AND t.relname = 'virgo_users'
1270
+ AND t.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
1271
+ 
1272
+  (1.8ms) SELECT viewname
1273
+ FROM pg_views
1274
+ WHERE schemaname = ANY (current_schemas(false))
1275
+ AND viewname NOT LIKE 'pg_%'
1276
+
1277
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1278
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1279
+ Migrating to CreateVirgoSchema (20150818154711)
1280
+  (0.2ms) BEGIN
1281
+ SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1282
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "pg_trgm"
1283
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1284
+  (16.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying , "object" text , "created_at" timestamp , "object_changes" text )
1285
+ PG::DuplicateTable: ERROR: relation "versions" already exists
1286
+ : CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying , "object" text , "created_at" timestamp , "object_changes" text )
1287
+  (0.1ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Zaillian
@@ -1127,6 +1127,7 @@ files:
1127
1127
  - spec/dummy/config/routes.rb
1128
1128
  - spec/dummy/config/schedule.rb
1129
1129
  - spec/dummy/config/secrets.yml
1130
+ - spec/dummy/db/migrate/20150818154711_create_virgo_schema.rb
1130
1131
  - spec/dummy/db/schema.rb
1131
1132
  - spec/dummy/log/development.log
1132
1133
  - spec/dummy/log/test.log
@@ -2037,6 +2038,7 @@ test_files:
2037
2038
  - spec/dummy/config/schedule.rb
2038
2039
  - spec/dummy/config/secrets.yml
2039
2040
  - spec/dummy/config.ru
2041
+ - spec/dummy/db/migrate/20150818154711_create_virgo_schema.rb
2040
2042
  - spec/dummy/db/schema.rb
2041
2043
  - spec/dummy/log/development.log
2042
2044
  - spec/dummy/log/test.log