Sha256: e914d83131fa036e6d10360a71443dd6afc4f79ac717d6e6c5873a4ee1ae43cb

Contents?: true

Size: 369 Bytes

Versions: 131

Compression:

Stored size: 369 Bytes

Contents

class CreateProfiles < ActiveRecord::Migration
  
  def self.up
  
    create_table :profiles, :force => true do |t|
      t.integer  :user_id
      t.string :photo_file_name
      t.string :photo_content_type
      t.integer :photo_file_size
      t.timestamps
    end

    add_index :profiles, ['user_id']

  end

  def self.down
    drop_table :profiles
  end
  
end

Version data entries

131 entries across 105 versions & 10 rubygems

Version Path
muck-activities-3.2.2 test/db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.5 db/migrate/20090512013727_create_profiles.rb
muck-activities-3.2.1 test/db/migrate/20090512013727_create_profiles.rb
muck-services-3.3.3 test/db/migrate/20090512013727_create_profiles.rb
muck-commerce-3.0.1 test/db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.4 db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.4 test/db/migrate/20090512013727_create_profiles.rb
muck-auth-3.5.4 test/db/migrate/20090512013727_create_profiles.rb
muck-auth-3.5.3 test/db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.3 db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.3 test/db/migrate/20090512013727_create_profiles.rb
muck-auth-3.5.2 test/db/migrate/20090512013727_create_profiles.rb
muck-invites-3.4.1 test/db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.2 db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.1 db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.1.0 db/migrate/20090512013727_create_profiles.rb
muck-friends-3.0.3 test/rails_test/db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.0.2 test/rails_test/db/migrate/20090512013727_create_profiles.rb
muck-profiles-3.0.2 db/migrate/20090512013727_create_profiles.rb
muck-invites-3.0.0 test/rails_test/db/migrate/20090512013727_create_profiles.rb