Sha256: 62eb9f79ddd0c2ef5f4ca79a630a0d56cbcdc9fdea9561e20a3ed984a844fe6c

Contents?: true

Size: 562 Bytes

Versions: 73

Compression:

Stored size: 562 Bytes

Contents

class CreateProfiles < ActiveRecord::Migration
  def self.up
    create_table :profiles do |t|
      t.string :first_name
      t.string :last_name
      t.string :alias
      t.string :blog_title
      t.text :about_me
      t.integer :user_id
      t.string :image_file_name
      t.string :image_content_type
      t.integer :image_file_size
      t.datetime :image_updated_at
      t.timestamps
    end
    add_index :profiles, :alias, :unique=>true
    add_index :profiles, :user_id, :unique=>true
  end

  def self.down
    drop_table :profiles
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
wheels-0.1.30 db/migrate/0050_create_profiles.rb
wheels-0.1.28 db/migrate/0050_create_profiles.rb
wheels-0.1.27 db/migrate/0050_create_profiles.rb
wheels-0.1.25 db/migrate/0050_create_profiles.rb
wheels-0.1.24 db/migrate/0050_create_profiles.rb
wheels-0.1.23 db/migrate/0050_create_profiles.rb
wheels-0.1.22 db/migrate/0050_create_profiles.rb
wheels-0.1.21 db/migrate/0050_create_profiles.rb
wheels-0.1.20 db/migrate/0050_create_profiles.rb
wheels-0.1.19 db/migrate/0050_create_profiles.rb
wheels-0.1.18 db/migrate/0050_create_profiles.rb
wheels-0.1.17 db/migrate/0050_create_profiles.rb
wheels-0.1.16 db/migrate/0050_create_profiles.rb
wheels-0.1.15 db/migrate/0050_create_profiles.rb
wheels-0.1.14 db/migrate/0050_create_profiles.rb
wheels-0.1.13 db/migrate/0050_create_profiles.rb
wheels-0.1.12 db/migrate/0050_create_profiles.rb
wheels-0.1.10 db/migrate/0050_create_profiles.rb
wheels-0.1.9 db/migrate/0050_create_profiles.rb
wheels-0.1.8 db/migrate/0050_create_profiles.rb