Create TypeDeChamps
This commit is contained in:
parent
d75ed802d2
commit
9392f1d6e3
7 changed files with 72 additions and 1 deletions
11
db/migrate/20151026155158_create_types_de_champs.rb
Normal file
11
db/migrate/20151026155158_create_types_de_champs.rb
Normal 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
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue