diff --git a/db/migrate/20180816171937_add_public_to_product_order_documents.rb b/db/migrate/20180816171937_add_public_to_product_order_documents.rb new file mode 100644 index 0000000..8f52595 --- /dev/null +++ b/db/migrate/20180816171937_add_public_to_product_order_documents.rb @@ -0,0 +1,5 @@ +class AddPublicToProductOrderDocuments < ActiveRecord::Migration + def change + add_column :product_order_documents, :public, :boolean, :default => false + end +end diff --git a/db/migrate/20180816171949_add_public_to_product_order_document_types.rb b/db/migrate/20180816171949_add_public_to_product_order_document_types.rb new file mode 100644 index 0000000..b19cdbb --- /dev/null +++ b/db/migrate/20180816171949_add_public_to_product_order_document_types.rb @@ -0,0 +1,5 @@ +class AddPublicToProductOrderDocumentTypes < ActiveRecord::Migration + def change + add_column :product_order_document_types, :public, :boolean, :default => false + end +end diff --git a/db/migrate/20180816172810_add_sub_domain_to_reseauxes.rb b/db/migrate/20180816172810_add_sub_domain_to_reseauxes.rb new file mode 100644 index 0000000..2ca2029 --- /dev/null +++ b/db/migrate/20180816172810_add_sub_domain_to_reseauxes.rb @@ -0,0 +1,5 @@ +class AddSubDomainToReseauxes < ActiveRecord::Migration + def change + add_column :reseauxes, :sub_domain, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index f160ed2..76d24cf 100755 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180809120902) do +ActiveRecord::Schema.define(version: 20180816172810) do create_table "abonnements", force: :cascade do |t| t.integer "abonnement_type_id", limit: 4 @@ -846,8 +846,9 @@ ActiveRecord::Schema.define(version: 20180809120902) do t.integer "reseaux_id", limit: 4 t.integer "fournisseur_id", limit: 4 t.string "name", limit: 255 - 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.boolean "public", default: false end create_table "product_order_documents", force: :cascade do |t| @@ -865,9 +866,10 @@ ActiveRecord::Schema.define(version: 20180809120902) do t.integer "reseaux_id", limit: 4 t.integer "fournisseur_id", limit: 4 t.string "token", limit: 255 - 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.string "name", limit: 255 + t.boolean "public", default: false end add_index "product_order_documents", ["product_order_id"], name: "index_product_order_documents_on_product_order_id", using: :btree @@ -1027,6 +1029,7 @@ ActiveRecord::Schema.define(version: 20180809120902) do t.integer "background_image_file_id", limit: 4 t.string "title", limit: 255 t.string "baseline", limit: 255 + t.string "sub_domain", limit: 255 end create_table "sessions", force: :cascade do |t|