aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorRobert2018-01-09 15:49:02 +0100
committerAlban Peignier2018-01-10 17:47:10 +0100
commit2be1e1c2bc313f586c4e0385d90a8cfbcd9ab609 (patch)
tree0a460e5e222c699423c4f163dcf65549b0e873a0 /db/migrate
parentdf77b06a42277b3c36627a2bfaa84ddf501d9f5f (diff)
downloadchouette-core-2be1e1c2bc313f586c4e0385d90a8cfbcd9ab609.tar.bz2
Refs: #5505@1h; Spec discussed, model scaffolded [amend me] [skip-ci]
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180109144120_create_custom_fields.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20180109144120_create_custom_fields.rb b/db/migrate/20180109144120_create_custom_fields.rb
new file mode 100644
index 000000000..49df645c5
--- /dev/null
+++ b/db/migrate/20180109144120_create_custom_fields.rb
@@ -0,0 +1,14 @@
+class CreateCustomFields < ActiveRecord::Migration
+ def change
+ create_table :custom_fields do |t|
+ t.string :code
+ t.string :resource_type
+ t.string :name
+ t.string :field_type
+ t.json :options
+ t.bigint :workgroup_id
+
+ t.timestamps null: false
+ end
+ end
+end