Enable the Layout/EmptyLinesAroundBlockBody cop
This commit is contained in:
parent
aac75106ef
commit
f1907f4d0e
84 changed files with 1 additions and 133 deletions
|
@ -13,7 +13,6 @@ class CreateEntreprise < ActiveRecord::Migration
|
|||
t.integer :date_creation
|
||||
t.string :nom
|
||||
t.string :prenom
|
||||
|
||||
end
|
||||
add_reference :entreprises, :dossier, references: :dossiers
|
||||
end
|
||||
|
|
|
@ -4,7 +4,6 @@ class BuildDefaultPreferenceListDossier < ActiveRecord::Migration
|
|||
|
||||
PreferenceListDossier.available_columns.each do |table|
|
||||
table.second.each do |column|
|
||||
|
||||
if valid_couple_table_attr? table.first, column.first
|
||||
PreferenceListDossier.create(
|
||||
libelle: column.second[:libelle],
|
||||
|
|
|
@ -99,7 +99,6 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
|||
|
||||
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
||||
table.second.each do |column|
|
||||
|
||||
if valid_couple_table_attr? table.first, column.first
|
||||
PreferenceListDossier.create(
|
||||
libelle: column.second[:libelle],
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
class CreateNotification < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :notifications do |t|
|
||||
|
||||
t.boolean :already_read, default: false
|
||||
t.string :liste, array: true
|
||||
t.boolean :multiple, default: false
|
||||
t.string :type_notif
|
||||
t.datetime :created_at
|
||||
t.datetime :updated_at
|
||||
|
||||
end
|
||||
|
||||
add_belongs_to :notifications, :dossier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue