projects
/
feedcatcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set up the feed_item model
[feedcatcher.git]
/
db
/
migrate
/
20140104143920_create_feed_items.rb
diff --git a/db/migrate/20140104143920_create_feed_items.rb
b/db/migrate/20140104143920_create_feed_items.rb
new file mode 100644
(file)
index 0000000..
11b82c1
--- /dev/null
+++ b/
db/migrate/20140104143920_create_feed_items.rb
@@ -0,0
+1,12
@@
+class CreateFeedItems < ActiveRecord::Migration
+ def change
+ create_table :feed_items do |t|
+ t.string :feed_name
+ t.string :title
+ t.string :description
+
+ t.timestamps
+ end
+ add_index :feed_items, :feed_name
+ end
+end