15 lines
292 B
Ruby
15 lines
292 B
Ruby
|
class CreateIgMedia < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :media do |t|
|
||
|
t.string :media_url
|
||
|
t.string :media_type
|
||
|
t.string :thumbnail_url
|
||
|
t.string :permalink
|
||
|
t.text :caption
|
||
|
t.datetime :timestamp
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|