15 lines
270 B
Ruby
15 lines
270 B
Ruby
class CreateItems < ActiveRecord::Migration
|
|
def change
|
|
create_table :items do |t|
|
|
t.string :title
|
|
t.string :url
|
|
t.string :author
|
|
t.text :content
|
|
t.datetime :published_at
|
|
|
|
t.references :feed
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|