First Commit
This commit is contained in:
commit
b5b83e939a
213 changed files with 8688 additions and 0 deletions
7
db/migrate/20150623121437_create_dossiers.rb
Normal file
7
db/migrate/20150623121437_create_dossiers.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class CreateDossiers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :dossiers do |t|
|
||||
t.string :description
|
||||
end
|
||||
end
|
||||
end
|
20
db/migrate/20150623122513_create_entreprise.rb
Normal file
20
db/migrate/20150623122513_create_entreprise.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
class CreateEntreprise < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :entreprises do |t|
|
||||
t.string :siren
|
||||
t.integer :capital_social
|
||||
t.string :numero_tva_intracommunautaire
|
||||
t.string :forme_juridique
|
||||
t.string :forme_juridique_code
|
||||
t.string :nom_commercial
|
||||
t.string :raison_sociale
|
||||
t.string :siret_siege_social
|
||||
t.string :code_effectif_entreprise
|
||||
t.integer :date_creation
|
||||
t.string :nom
|
||||
t.string :prenom
|
||||
|
||||
end
|
||||
add_reference :entreprises, :dossier, references: :dossiers
|
||||
end
|
||||
end
|
20
db/migrate/20150623123033_create_etablissements.rb
Normal file
20
db/migrate/20150623123033_create_etablissements.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
class CreateEtablissements < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :etablissements do |t|
|
||||
t.string :siret
|
||||
t.boolean :siege_social
|
||||
t.string :naf
|
||||
t.string :libelle_naf
|
||||
t.string :adresse
|
||||
t.string :numero_voie
|
||||
t.string :type_voie
|
||||
t.string :nom_voie
|
||||
t.string :complement_adresse
|
||||
t.string :code_postal
|
||||
t.string :localite
|
||||
t.string :code_insee_localite
|
||||
end
|
||||
add_reference :etablissements, :dossier, references: :dossiers
|
||||
add_reference :etablissements, :entreprise, references: :entreprises
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddAutorisationDonneesToDossiers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dossiers, :autorisation_donnees, :boolean
|
||||
end
|
||||
end
|
6
db/migrate/20150624145400_add_position_to_dossiers.rb
Normal file
6
db/migrate/20150624145400_add_position_to_dossiers.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddPositionToDossiers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dossiers, :position_lat, :string
|
||||
add_column :dossiers, :position_lon, :string
|
||||
end
|
||||
end
|
5
db/migrate/20150625130851_add_ref_dossier_to_dossiers.rb
Normal file
5
db/migrate/20150625130851_add_ref_dossier_to_dossiers.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddRefDossierToDossiers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dossiers, :ref_dossier, :string
|
||||
end
|
||||
end
|
8
db/migrate/20150626081655_create_dossier_pdfs.rb
Normal file
8
db/migrate/20150626081655_create_dossier_pdfs.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class CreateDossierPdfs < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :dossier_pdfs do |t|
|
||||
t.string :ref_dossier_pdf
|
||||
end
|
||||
add_reference :dossier_pdfs, :dossier, references: :dossiers
|
||||
end
|
||||
end
|
10
db/migrate/20150630123827_add_details_projet_to_dossiers.rb
Normal file
10
db/migrate/20150630123827_add_details_projet_to_dossiers.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class AddDetailsProjetToDossiers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dossiers, :nom_projet, :string
|
||||
add_column :dossiers, :montant_projet, :string
|
||||
add_column :dossiers, :montant_aide_demande, :string
|
||||
add_column :dossiers, :date_previsionnelle, :string
|
||||
add_column :dossiers, :lien_plus_infos, :string
|
||||
add_column :dossiers, :mail_contact, :string
|
||||
end
|
||||
end
|
42
db/migrate/20150728140340_devise_create_users.rb
Normal file
42
db/migrate/20150728140340_devise_create_users.rb
Normal file
|
@ -0,0 +1,42 @@
|
|||
class DeviseCreateUsers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table(:users) do |t|
|
||||
## Database authenticatable
|
||||
t.string :email, null: false, default: ""
|
||||
t.string :encrypted_password, null: false, default: ""
|
||||
|
||||
## Recoverable
|
||||
t.string :reset_password_token
|
||||
t.datetime :reset_password_sent_at
|
||||
|
||||
## Rememberable
|
||||
t.datetime :remember_created_at
|
||||
|
||||
## Trackable
|
||||
t.integer :sign_in_count, default: 0, null: false
|
||||
t.datetime :current_sign_in_at
|
||||
t.datetime :last_sign_in_at
|
||||
t.inet :current_sign_in_ip
|
||||
t.inet :last_sign_in_ip
|
||||
|
||||
## Confirmable
|
||||
# t.string :confirmation_token
|
||||
# t.datetime :confirmed_at
|
||||
# t.datetime :confirmation_sent_at
|
||||
# t.string :unconfirmed_email # Only if using reconfirmable
|
||||
|
||||
## Lockable
|
||||
# t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
|
||||
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
||||
# t.datetime :locked_at
|
||||
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :users, :email, unique: true
|
||||
add_index :users, :reset_password_token, unique: true
|
||||
# add_index :users, :confirmation_token, unique: true
|
||||
# add_index :users, :unlock_token, unique: true
|
||||
end
|
||||
end
|
42
db/migrate/20150731121101_devise_create_pros.rb
Normal file
42
db/migrate/20150731121101_devise_create_pros.rb
Normal file
|
@ -0,0 +1,42 @@
|
|||
class DeviseCreatePros < ActiveRecord::Migration
|
||||
def change
|
||||
create_table(:pros) do |t|
|
||||
## Database authenticatable
|
||||
t.string :email, null: false, default: ""
|
||||
t.string :encrypted_password, null: false, default: ""
|
||||
|
||||
## Recoverable
|
||||
t.string :reset_password_token
|
||||
t.datetime :reset_password_sent_at
|
||||
|
||||
## Rememberable
|
||||
t.datetime :remember_created_at
|
||||
|
||||
## Trackable
|
||||
t.integer :sign_in_count, default: 0, null: false
|
||||
t.datetime :current_sign_in_at
|
||||
t.datetime :last_sign_in_at
|
||||
t.inet :current_sign_in_ip
|
||||
t.inet :last_sign_in_ip
|
||||
|
||||
## Confirmable
|
||||
# t.string :confirmation_token
|
||||
# t.datetime :confirmed_at
|
||||
# t.datetime :confirmation_sent_at
|
||||
# t.string :unconfirmed_email # Only if using reconfirmable
|
||||
|
||||
## Lockable
|
||||
# t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
|
||||
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
||||
# t.datetime :locked_at
|
||||
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :pros, :email, unique: true
|
||||
add_index :pros, :reset_password_token, unique: true
|
||||
# add_index :pros, :confirmation_token, unique: true
|
||||
# add_index :pros, :unlock_token, unique: true
|
||||
end
|
||||
end
|
13
db/migrate/20150804131511_create_commentaires.rb
Normal file
13
db/migrate/20150804131511_create_commentaires.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
class CreateCommentaires < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :commentaires do |t|
|
||||
t.string :email
|
||||
t.date :created_at
|
||||
t.string :body
|
||||
t.references :dossier, index: true
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
add_foreign_key :commentaires, :dossiers
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddDossierTermineToDossiers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dossiers, :dossier_termine, :boolean
|
||||
end
|
||||
end
|
9
db/migrate/20150806071130_create_evenement_vies.rb
Normal file
9
db/migrate/20150806071130_create_evenement_vies.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class CreateEvenementVies < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :evenement_vies do |t|
|
||||
t.string :nom
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddUseAdmiFacileToEvenementVie < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :evenement_vies, :use_admi_facile, :boolean
|
||||
end
|
||||
end
|
17
db/migrate/20150806075144_create_ref_pieces_jointes.rb
Normal file
17
db/migrate/20150806075144_create_ref_pieces_jointes.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
class CreateRefPiecesJointes < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :ref_pieces_jointes do |t|
|
||||
t.string :CERFA
|
||||
t.string :nature
|
||||
t.string :libelle_complet
|
||||
t.string :etablissement
|
||||
t.string :libelle
|
||||
t.string :description
|
||||
t.string :demarche
|
||||
t.string :administration_emetrice
|
||||
t.boolean :api_entreprise
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
21
db/migrate/20150806132417_create_ref_formulaires.rb
Normal file
21
db/migrate/20150806132417_create_ref_formulaires.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class CreateRefFormulaires < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :ref_formulaires do |t|
|
||||
t.string :ref_demarche
|
||||
t.string :nom
|
||||
t.string :objet
|
||||
t.string :ministere
|
||||
t.string :cigle_ministere
|
||||
t.string :direction
|
||||
t.string :evenement_vie
|
||||
t.string :publics
|
||||
t.string :lien_demarche
|
||||
t.string :lien_fiche_signaletique
|
||||
t.string :lien_notice
|
||||
t.string :categorie
|
||||
t.boolean :mail_pj
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddUseAdmiFacileToRefFormulaire < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :ref_formulaires, :use_admi_facile, :boolean
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddRefFormulaireToDossier < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dossiers, :ref_formulaire, :string
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue