This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/01220_create_video_files.rb
2021-08-23 10:26:02 +02:00

27 lines
775 B
Ruby

class CreateVideoFiles < ActiveRecord::Migration[6.0]
def change
create_table :video_files do |t|
t.string :title
t.text :description
t.string :token
t.string :poster
t.string :mpg
t.string :ogg
t.string :webm
t.string :youtube_link
t.string :youtube_code
t.references :video_folder, index: true
t.string :slug
t.references :image_file, index: true
t.string :vimeo_code
t.boolean :public, :default => false
t.datetime :published_at
t.integer :position
t.boolean :fr, :default => true
t.boolean :en, :default => false
t.timestamps
end
end
end