Commit 818836e54fac2cabd1599bdefdf10a9b0e2dd739
- Date: Sun Jan 27 14:17:25 +0000 2008
- Committer: Priit Tamboom (priit@mx.ee)
- Author: Priit Tamboom (priit@mx.ee)
- Commit SHA1: 818836e54fac2cabd1599bdefdf10a9b0e2dd739
- Tree SHA1: d49575701cc6f0ca71d11a65ae53d1707283491c
updated model files: project_id
Commit diff
| |   |
| 9 | 9 | # body :text |
| 10 | 10 | # created_at :datetime |
| 11 | 11 | # updated_at :datetime |
| 12 | # project_id :integer |
| 12 | 13 | # |
| 13 | 14 | |
| 14 | 15 | class Comment < ActiveRecord::Base |
| toggle raw diff |
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -9,6 +9,7 @@
# body :text
# created_at :datetime
# updated_at :datetime
+# project_id :integer
#
class Comment < ActiveRecord::Base |
| |   |
| 32 | 32 | sha1 character varying(255) NOT NULL, |
| 33 | 33 | body text, |
| 34 | 34 | created_at timestamp without time zone, |
| 35 | | updated_at timestamp without time zone |
| 35 | updated_at timestamp without time zone, |
| 36 | project_id integer |
| 36 | 37 | ); |
| 37 | 38 | |
| 38 | 39 | |
| … | … | |
| 479 | 479 | |
| 480 | 480 | |
| 481 | 481 | -- |
| 482 | -- Name: index_comments_on_project_id; Type: INDEX; Schema: public; Owner: -; Tablespace: |
| 483 | -- |
| 484 | |
| 485 | CREATE INDEX index_comments_on_project_id ON comments USING btree (project_id); |
| 486 | |
| 487 | |
| 488 | -- |
| 482 | 489 | -- Name: index_comments_on_repository_id; Type: INDEX; Schema: public; Owner: -; Tablespace: |
| 483 | 490 | -- |
| 484 | 491 | |
| … | … | |
| 636 | 636 | -- PostgreSQL database dump complete |
| 637 | 637 | -- |
| 638 | 638 | |
| 639 | | INSERT INTO schema_info (version) VALUES (19) |
| 639 | INSERT INTO schema_info (version) VALUES (20) |
| toggle raw diff |
--- a/db/development_structure.sql
+++ b/db/development_structure.sql
@@ -32,7 +32,8 @@ CREATE TABLE comments (
sha1 character varying(255) NOT NULL,
body text,
created_at timestamp without time zone,
- updated_at timestamp without time zone
+ updated_at timestamp without time zone,
+ project_id integer
);
@@ -478,6 +479,13 @@ ALTER TABLE ONLY users
--
+-- Name: index_comments_on_project_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
+--
+
+CREATE INDEX index_comments_on_project_id ON comments USING btree (project_id);
+
+
+--
-- Name: index_comments_on_repository_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
@@ -628,4 +636,4 @@ CREATE INDEX index_users_on_ssh_key_id ON users USING btree (ssh_key_id);
-- PostgreSQL database dump complete
--
-INSERT INTO schema_info (version) VALUES (19)
\ No newline at end of file
+INSERT INTO schema_info (version) VALUES (20)
\ No newline at end of file |
| |   |
| 9 | 9 | # body :text |
| 10 | 10 | # created_at :datetime |
| 11 | 11 | # updated_at :datetime |
| 12 | # project_id :integer |
| 12 | 13 | # |
| 13 | 14 | |
| 14 | 15 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |
| toggle raw diff |
--- a/spec/fixtures/comments.yml
+++ b/spec/fixtures/comments.yml
@@ -9,6 +9,7 @@
# body :text
# created_at :datetime
# updated_at :datetime
+# project_id :integer
#
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html |