Make the procedures’ table organisation column not null
This commit is contained in:
parent
731e1b6787
commit
dc439933d8
2 changed files with 9 additions and 4 deletions
|
@ -0,0 +1,5 @@
|
|||
class MakeProceduresOrganisationNotNull < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
change_column_null :procedures, :organisation, false
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20171117165748) do
|
||||
ActiveRecord::Schema.define(version: 20171123125346) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -78,8 +78,8 @@ ActiveRecord::Schema.define(version: 20171117165748) do
|
|||
t.string "logo"
|
||||
t.string "signature"
|
||||
t.boolean "activated"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "procedure_id"
|
||||
t.string "logo_secure_token"
|
||||
t.string "signature_secure_token"
|
||||
|
@ -404,7 +404,7 @@ ActiveRecord::Schema.define(version: 20171117165748) do
|
|||
create_table "procedures", force: :cascade do |t|
|
||||
t.string "libelle"
|
||||
t.string "description"
|
||||
t.string "organisation"
|
||||
t.string "organisation", null: false
|
||||
t.string "direction"
|
||||
t.string "lien_demarche"
|
||||
t.datetime "created_at", null: false
|
||||
|
|
Loading…
Reference in a new issue