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/00210_create_data_files.rb
2021-08-23 10:26:02 +02:00

25 lines
804 B
Ruby

class CreateDataFiles < ActiveRecord::Migration[6.0]
def change
create_table :data_files do |t|
t.string :file
t.string :name
t.string :slug
t.string :token
t.string :description
t.references :file_folder, index: true
t.string :title
t.text :long_desc
t.boolean :boutique, :default => false
t.references :data_file_category, index: true
t.references :image_file, index: true
t.text :yumpu_content
t.boolean :show_yumpu, :default => false
t.references :square_image_file, index: true
t.boolean :order_link, :default => false
t.boolean :download_link, :default => false
t.timestamps
end
end
end