Sha256: 83e7ce48a8160e0eb3dfa5583053b228a80e2f6b3e3001ed2958eee3ff648535
Contents?: true
Size: 1.19 KB
Versions: 9
Compression:
Stored size: 1.19 KB
Contents
class CreateEffectiveAssets < ActiveRecord::Migration[4.2] def self.up create_table <%= @assets_table_name %> do |t| t.string :title t.text :extra t.integer :user_id t.string :content_type t.text :upload_file t.string :data t.boolean :processed, :default => false t.string :aws_acl, :default => 'public-read' t.integer :data_size t.integer :height t.integer :width t.text :versions_info t.timestamps end add_index <%= @assets_table_name %>, :content_type add_index <%= @assets_table_name %>, :user_id create_table <%= @attachments_table_name %> do |t| t.integer :asset_id t.string :attachable_type t.integer :attachable_id t.integer :position t.string :box end create_table <%= @iframe_uploads_table_name %> do |t| t.timestamps end add_index <%= @attachments_table_name %>, :asset_id add_index <%= @attachments_table_name %>, [:attachable_type, :attachable_id] add_index <%= @attachments_table_name %>, :attachable_id end def self.down drop_table <%= @assets_table_name %> drop_table <%= @attachments_table_name %> end end
Version data entries
9 entries across 9 versions & 1 rubygems