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.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
@ -404,7 +404,7 @@ ActiveRecord::Schema.define(version: 20171117165748) do
|
||||||
create_table "procedures", force: :cascade do |t|
|
create_table "procedures", force: :cascade do |t|
|
||||||
t.string "libelle"
|
t.string "libelle"
|
||||||
t.string "description"
|
t.string "description"
|
||||||
t.string "organisation"
|
t.string "organisation", null: false
|
||||||
t.string "direction"
|
t.string "direction"
|
||||||
t.string "lien_demarche"
|
t.string "lien_demarche"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
|
|
Loading…
Reference in a new issue