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-commerce-0.2.3 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-invites-0.1.11 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-commerce-0.2.2 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-invites-0.1.10 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-commerce-0.2.1 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-commerce-0.2.0 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-commerce-0.1.9 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-comments-0.1.20 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-invites-0.1.7 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-commerce-0.1.8 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-invites-0.1.6 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-comments-0.1.19 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-profiles-0.2.1 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-profiles-0.2.1 db/migrate/20090512013727_create_profiles.rb
muck-profiles-0.2.0 db/migrate/20090512013727_create_profiles.rb
muck-profiles-0.2.0 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-activities-0.1.27 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-activities-0.1.26 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-comments-0.1.18 test/rails_root/db/migrate/20090512013727_create_profiles.rb
muck-friends-0.1.17 test/rails_root/db/migrate/20090512013727_create_profiles.rb