003_create_profiles.rb
876 Bytes
class CreateProfiles < ActiveRecord::Migration
def self.up
create_table :profiles do |t|
t.column :name, :string
t.column :type, :string
t.column :identifier, :string
t.column :environment_id, :integer
t.column :active, :boolean, :default => false
t.column :address, :string
t.column :contact_phone, :string
#person fields
t.column :user_id, :integer
#enterprise fields
t.column :validation_entity_id, :integer
t.column :approved, :boolean
end
end
def self.down
drop_table :profiles
end
end