2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/generators/omnom/install/templates/db/migrate/create_omnom_posts.rb', line 2
def change
create_table :omnom_posts do |t|
t.string :guid_namespace, null: false
t.text :guid, null: false
t.text :url, null: false
t.string :title, null: false
t.string :subtitle
t.text :description
t.datetime :published_at, null: false
t.text :thumbnail_url
t.integer :thumbnail_width
t.integer :thumbnail_height
t.string :author_name
t.text :author_url
t.text :comments_url
t.integer :comments_count
t.text :tags
t.text :other
t.boolean :is_read, null: false, default: false
t.timestamps
end
add_index :omnom_posts, :guid
add_index :omnom_posts, [:guid_namespace, :guid]
add_index :omnom_posts, :published_at
add_index :omnom_posts, :is_read
end
|