16 lines
263 B
Ruby
16 lines
263 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.time :published
|
||
|
|
||
|
t.references :feed
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|