Add drop down list on type champ list
This commit is contained in:
parent
9487d47ef8
commit
85e7af840a
17 changed files with 132 additions and 41 deletions
8
db/migrate/20160809083606_create_drop_down_list_table.rb
Normal file
8
db/migrate/20160809083606_create_drop_down_list_table.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class CreateDropDownListTable < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :drop_down_lists do |t|
|
||||
t.string :value
|
||||
t.belongs_to :type_de_champ
|
||||
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: 20160808115924) do
|
||||
ActiveRecord::Schema.define(version: 20160809083606) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -130,6 +130,11 @@ ActiveRecord::Schema.define(version: 20160808115924) do
|
|||
add_index "dossiers", ["procedure_id"], name: "index_dossiers_on_procedure_id", using: :btree
|
||||
add_index "dossiers", ["user_id"], name: "index_dossiers_on_user_id", using: :btree
|
||||
|
||||
create_table "drop_down_lists", force: :cascade do |t|
|
||||
t.string "value"
|
||||
t.integer "type_de_champ_id"
|
||||
end
|
||||
|
||||
create_table "entreprises", force: :cascade do |t|
|
||||
t.string "siren"
|
||||
t.integer "capital_social"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue