Sha256: 2b0b4a2f2ff88a87cc7fc63719ce9148ea7af48f14ea7dec51b2fee7e0af6138

Contents?: true

Size: 620 Bytes

Versions: 6

Compression:

Stored size: 620 Bytes

Contents

class CreatePeople < ActiveRecord::Migration
  def self.up
    create_table :people do |t|
      t.string :email,
        :firstname,
        :lastname,
        :type,
        :phone,
        :other_phone,
        :lang,
        :time_zone
      t.string :crypted_password,
        :salt,
        :remember_token,
        :activation_code,
        :limit => 40
      t.datetime :remember_token_expires_at,
        :activated_at
      t.belongs_to :avatar,
        :country,
        :role
      t.date :birthday
      t.timestamps
      t.integer :civility
    end
  end

  def self.down
    drop_table :people
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forgeos_core-1.9.5.rc2 db/migrate/20091009134743_create_people.rb
forgeos_core-1.9.5.rc1 db/migrate/20091009134743_create_people.rb
forgeos_core-1.9.4 db/migrate/20091009134743_create_people.rb
forgeos_core-1.9.3 db/migrate/20091009134743_create_people.rb
forgeos_core-1.9.2 db/migrate/20091009134743_create_people.rb
forgeos_core-1.9.1 db/migrate/20091009134743_create_people.rb