migration

This commit is contained in:
Nicolas Bally 2018-08-16 21:14:14 +02:00
parent dd84190a58
commit 52ba89cc94
4 changed files with 23 additions and 5 deletions

View File

@ -0,0 +1,5 @@
class AddPublicToProductOrderDocuments < ActiveRecord::Migration
def change
add_column :product_order_documents, :public, :boolean, :default => false
end
end

View File

@ -0,0 +1,5 @@
class AddPublicToProductOrderDocumentTypes < ActiveRecord::Migration
def change
add_column :product_order_document_types, :public, :boolean, :default => false
end
end

View File

@ -0,0 +1,5 @@
class AddSubDomainToReseauxes < ActiveRecord::Migration
def change
add_column :reseauxes, :sub_domain, :string
end
end

View File

@ -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|