add framework for post update pushes to pubsub
This commit is contained in:
9
db/migrate/20160820003534_create_post_updates.rb
Normal file
9
db/migrate/20160820003534_create_post_updates.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class CreatePostUpdates < ActiveRecord::Migration
|
||||
def up
|
||||
execute "create unlogged table post_updates ( post_id integer, constraint unique_post_id unique(post_id) )"
|
||||
end
|
||||
|
||||
def down
|
||||
execute "drop table post_updates"
|
||||
end
|
||||
end
|
||||
@@ -2654,6 +2654,15 @@ CREATE SEQUENCE post_flags_id_seq
|
||||
ALTER SEQUENCE post_flags_id_seq OWNED BY post_flags.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: post_updates; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE UNLOGGED TABLE post_updates (
|
||||
post_id integer
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: post_versions; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
@@ -4750,6 +4759,14 @@ ALTER TABLE ONLY transaction_log_items
|
||||
ADD CONSTRAINT transaction_log_items_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: unique_post_id; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY post_updates
|
||||
ADD CONSTRAINT unique_post_id UNIQUE (post_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
@@ -7391,3 +7408,5 @@ INSERT INTO schema_migrations (version) VALUES ('20160222211328');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20160526174848');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20160820003534');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user