fixed tag subscription tests
This commit is contained in:
@@ -2284,7 +2284,7 @@ ALTER SEQUENCE tag_implications_id_seq OWNED BY tag_implications.id;
|
||||
|
||||
CREATE TABLE tag_subscriptions (
|
||||
id integer NOT NULL,
|
||||
owner_id integer NOT NULL,
|
||||
creator_id integer NOT NULL,
|
||||
name character varying(255) NOT NULL,
|
||||
tag_query character varying(255) NOT NULL,
|
||||
post_ids text NOT NULL,
|
||||
@@ -4932,6 +4932,13 @@ CREATE INDEX index_tag_implications_on_antecedent_name ON tag_implications USING
|
||||
CREATE INDEX index_tag_implications_on_consequent_name ON tag_implications USING btree (consequent_name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_tag_subscriptions_on_creator_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE INDEX index_tag_subscriptions_on_creator_id ON tag_subscriptions USING btree (creator_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_tag_subscriptions_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
@@ -4939,13 +4946,6 @@ CREATE INDEX index_tag_implications_on_consequent_name ON tag_implications USING
|
||||
CREATE INDEX index_tag_subscriptions_on_name ON tag_subscriptions USING btree (name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_tag_subscriptions_on_owner_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE INDEX index_tag_subscriptions_on_owner_id ON tag_subscriptions USING btree (owner_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_tags_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class CreateTagSubscriptions < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :tag_subscriptions do |t|
|
||||
t.column :owner_id, :integer, :null => false
|
||||
t.column :creator_id, :integer, :null => false
|
||||
t.column :name, :string, :null => false
|
||||
t.column :tag_query, :string, :null => false
|
||||
t.column :post_ids, :text, :null => false
|
||||
@@ -9,7 +9,7 @@ class CreateTagSubscriptions < ActiveRecord::Migration
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :tag_subscriptions, :owner_id
|
||||
add_index :tag_subscriptions, :creator_id
|
||||
add_index :tag_subscriptions, :name
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user