Created
November 19, 2010 17:24
-
-
Save foxweb/706819 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateVisaforms < ActiveRecord::Migration | |
def self.up | |
create_table :visaforms do |t| | |
t.string :lastname #1 | |
t.string :lastname_prev #2 | |
t.string :firstname #3 | |
t.date :birth_date #4 | |
t.string :birth_place #5 | |
t.string :birth_country #6 | |
t.string :national #7.1 | |
t.string :birth_national #7.2 | |
t.boolean :sex #8 | |
t.integer :marital_status #9 | |
t.string :num_id #11 | |
t.integer :doc_type #12 - тип проездного документа | |
t.string :doc_id #13 - номер проездного документа | |
t.date :doc_date #14 - дата выдачи | |
t.date :doc_before #15 - действителен до | |
t.string :doc_from #16 - кем выдан | |
t.string :post_address #17.1 | |
t.string :email #17.2 | |
t.string :phone #17.3 | |
t.boolean :resident #18.1 - страна пребывания, если не является страной гражданства (да, нет) | |
t.string :resident_doc_id #18.2 - вид на жительство | |
t.string :resident_before #18.3 - действителен до | |
t.string :professional #19 - профессиональная деятельность в настоящее время | |
t.string :employer #20 - работадатель, учебное заведение | |
t.integer :trip_purpose #21.1 - цель поездки | |
t.string :trip_purpose_comment #21.2 | |
t.string :country_dest #22 | |
t.string :country_start #23 | |
t.integer :visa_entries #24 - виза для 1, 2, n въезда | |
t.integer :num_days #25 - количество дней пребывания | |
t.boolean :visas_others #26.1 - другие визы за последние три года (да, нет) | |
t.string :visas_comment #26.2 - | |
t.boolean :fingerprints #27.1 - отпечатки пальцев (да, нет) | |
t.date :fingerprints_date #27.2 - отпечатки пальцев (дата) | |
t.string :permission_dest_entry_from #28.1 - разрешение на въезд в конечную страну - кем выдано | |
t.date :permission_dest_entry_begin #28.2 - с даты | |
t.date :permission_dest_entry_end #28.3 - по дату | |
t.date :shengen_entry_date #29 - дата въезда в шенгенскую зону | |
t.date :shengen_leave_date #30 - дата выезда из шенгенской зоны | |
t.text :dest_names #31.1 - имена приглашающих / название гостиницы | |
t.text :dest_address #31.2 - адрес пребывания | |
t.string :dest_email #31.3 - email | |
t.string :dest_phone #31.4 - телефон | |
t.string :invite_org_name #32.1 - название приглашающей организации | |
t.string :invite_org_address #32.2 - адрес приглашающей организации | |
t.string :invite_org_phone #32.3 - телефоны приглашающей организации | |
t.text :invite_org_person #32.4 - контактное лицо приглашающей организации. имя, телефон, почта | |
t.integer :who_pays #33.1 - кто платит? | |
# 1 - заявитель, | |
# 2 - спонсор указанная организация | |
# 3 - иные спонсоры | |
t.string :pays_1 #33.2 | |
t.string :pays_2 #33.3 | |
t.text :notes | |
t.timestamps | |
end | |
end | |
def self.down | |
drop_table :visaforms | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment