Sha256: ade088ec1dbc6200827abe20df8944f2a2e59cb504c4804f960c21485bb94996

Contents?: true

Size: 490 Bytes

Versions: 19

Compression:

Stored size: 490 Bytes

Contents

class CreateAttachableAssets < ActiveRecord::Migration
  def self.up
    create_table :attachable_assets do |t|
      t.string    :type
      t.integer   :attachable_id
      t.string    :attachable_type
      t.string    :attachment_file_name
      t.string    :attachment_content_type
      t.integer   :attachment_file_size
      t.datetime  :attachment_updated_at
      t.integer   :position
      t.timestamps
    end
  end

  def self.down
    drop_table :attachable_assets
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cable-0.9.17 lib/generators/cable/media/templates/migration.rb
cable-0.9.16 lib/generators/cable/media/templates/migration.rb
cable-0.9.15 lib/generators/cable/media/templates/migration.rb
cable-0.9.14 lib/generators/cable/media/templates/migration.rb
cable-0.9.13 lib/generators/cable/media/templates/migration.rb
cable-0.9.12 lib/generators/cable/media/templates/migration.rb
cable-0.9.11 lib/generators/cable/media/templates/migration.rb
cable-0.9.10 lib/generators/cable/media/templates/migration.rb
cable-0.9.9 lib/generators/cable/media/templates/migration.rb
cable-0.9.8 lib/generators/cable/media/templates/migration.rb
cable-0.9.6 lib/generators/cable/media/templates/migration.rb
cable-0.9.5 lib/generators/cable/media/templates/migration.rb
cable-0.9.4 lib/generators/cable/media/templates/migration.rb
cable-0.9.3 lib/generators/cable/media/templates/migration.rb
cable-0.9.1 lib/generators/cable/media/templates/migration.rb
cable-0.9.0 lib/generators/cable/media/templates/migration.rb
cable-0.8.6 lib/generators/cable/media/templates/migration.rb
cable-0.8.5 lib/generators/cable/media/templates/migration.rb
cable-0.8.4 lib/generators/cable/media/templates/migration.rb