Sha256: 23b9b36bfbc94b8f94da496e2a3ffe91b901bec684840ef3e6c98393e34364cd

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

class CreateAssets < ActiveRecord::Migration
  def self.up
    create_table :brightcontent_assets do |t|
      t.integer  :attachable_id
      t.string   :attachable_type
      t.string   :asset_file_name
      t.string   :asset_content_type
      t.integer  :asset_file_size
      t.datetime :asset_updated_at
      t.timestamps
    end
    add_index :brightcontent_assets, :attachable_id
    add_index :brightcontent_assets, :attachable_type
  end

  def self.down
    drop_table :brightcontent_assets
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
brightcontent-assets-2.0.5 db/migrate/20121222172513_create_assets.rb
brightcontent-assets-2.0.3 db/migrate/20121222172513_create_assets.rb
brightcontent-assets-2.0.2 db/migrate/20121222172513_create_assets.rb
brightcontent-assets-2.0.1 db/migrate/20121222172513_create_assets.rb
brightcontent-assets-2.0.0.alpha6 db/migrate/20121222172513_create_assets.rb