Create TypeDeChamps

This commit is contained in:
Xavier J 2015-10-26 17:35:02 +01:00
parent d75ed802d2
commit 9392f1d6e3
7 changed files with 72 additions and 1 deletions

View file

@ -0,0 +1,11 @@
class CreateTypesDeChamps < ActiveRecord::Migration
def change
create_table :types_de_champs do |t|
t.string :libelle
t.string :type
t.integer :order_place
t.belongs_to :procedure
end
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: 20151023132121) do
ActiveRecord::Schema.define(version: 20151026155158) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -142,6 +142,13 @@ ActiveRecord::Schema.define(version: 20151023132121) do
t.boolean "use_api_carto", default: false
end
create_table "types_de_champs", force: :cascade do |t|
t.string "libelle"
t.string "type"
t.integer "order_place"
t.integer "procedure_id"
end
create_table "types_de_piece_justificative", force: :cascade do |t|
t.string "libelle"
t.string "description"