Sha256: 839c322d2fd2fee0eb95b20837bb845a43f7d2f3749167e0cc33672b8ca3a4b5

Contents?: true

Size: 551 Bytes

Versions: 10

Compression:

Stored size: 551 Bytes

Contents

class CreateAssets < ActiveRecord::Migration
  def self.up
    create_table :assets do |t|
      t.column :filename, :string
      t.column :width, :integer
      t.column :height, :integer
      t.column :content_type, :string
      t.column :size, :integer
      t.column :attachable_type, :string
      t.column :attachable_id, :integer
      t.column :updated_at, :datetime
      t.column :created_at, :datetime
      t.column :thumbnail, :string
      t.column :parent_id, :integer
    end
  end

  def self.down
    drop_table :assets
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/052_create_assets.rb
community_engine-3.0.0 db/migrate/052_create_assets.rb
community_engine-2.3.2 db/migrate/052_create_assets.rb
community_engine-2.3.1 db/migrate/052_create_assets.rb
community_engine-2.3.0 db/migrate/052_create_assets.rb
community_engine-2.1.0 db/migrate/052_create_assets.rb
community_engine-2.0.0 db/migrate/052_create_assets.rb
community_engine-2.0.0.beta3 db/migrate/052_create_assets.rb
community_engine-2.0.0.beta2 db/migrate/052_create_assets.rb
community_engine-2.0.0.beta1 db/migrate/052_create_assets.rb