Sha256: 904e207eb6e50bf3cda28ff69039bd86b0a7394001fee3ff9cbe39b92489f538

Contents?: true

Size: 579 Bytes

Versions: 28

Compression:

Stored size: 579 Bytes

Contents

# This migration comes from push_type (originally 20141127151930)
class CreatePushTypeAssets < ActiveRecord::Migration[4.2]
  def change
    enable_extension 'uuid-ossp' unless extension_enabled?('uuid-ossp')
    create_table :push_type_assets, id: :uuid, default: 'uuid_generate_v4()' do |t|
      t.string    :file_uid
      t.string    :file_name
      t.integer   :file_size
      t.string    :file_ext
      t.string    :mime_type
      t.string    :description

      t.uuid      :uploader_id

      t.timestamps null: false
      t.datetime  :deleted_at
    end
  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
push_type_core-0.12.1 test/dummy/db/migrate/20180704111739_create_push_type_assets.push_type.rb
push_type_auth-0.12.1 test/dummy/db/migrate/20180704111924_create_push_type_assets.push_type.rb
push_type_api-0.12.1 test/dummy/db/migrate/20180704111811_create_push_type_assets.push_type.rb
push_type_admin-0.12.1 test/dummy/db/migrate/20180704111836_create_push_type_assets.push_type.rb
push_type_core-0.12.0 test/dummy/db/migrate/20180416190560_create_push_type_assets.push_type.rb
push_type_auth-0.12.0 test/dummy/db/migrate/20180416190749_create_push_type_assets.push_type.rb
push_type_api-0.12.0 test/dummy/db/migrate/20180416190631_create_push_type_assets.push_type.rb
push_type_admin-0.12.0 test/dummy/db/migrate/20180416190655_create_push_type_assets.push_type.rb
push_type_core-0.12.0.beta.1 test/dummy/db/migrate/20180416190560_create_push_type_assets.push_type.rb
push_type_auth-0.12.0.beta.1 test/dummy/db/migrate/20180416190749_create_push_type_assets.push_type.rb
push_type_api-0.12.0.beta.1 test/dummy/db/migrate/20180416190631_create_push_type_assets.push_type.rb
push_type_admin-0.12.0.beta.1 test/dummy/db/migrate/20180416190655_create_push_type_assets.push_type.rb
push_type_core-0.11.2 test/dummy/db/migrate/20170922151249_create_push_type_assets.push_type.rb
push_type_auth-0.11.2 test/dummy/db/migrate/20170922151417_create_push_type_assets.push_type.rb
push_type_api-0.11.2 test/dummy/db/migrate/20170922151315_create_push_type_assets.push_type.rb
push_type_admin-0.11.2 test/dummy/db/migrate/20170922151335_create_push_type_assets.push_type.rb
push_type_core-0.11.1 test/dummy/db/migrate/20170518181638_create_push_type_assets.push_type.rb
push_type_auth-0.11.1 test/dummy/db/migrate/20170518181807_create_push_type_assets.push_type.rb
push_type_api-0.11.1 test/dummy/db/migrate/20170518181704_create_push_type_assets.push_type.rb
push_type_admin-0.11.1 test/dummy/db/migrate/20170518181724_create_push_type_assets.push_type.rb