aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorEdouard Maffert2016-05-12 17:14:18 +0200
committerEdouard Maffert2016-05-12 17:14:18 +0200
commit020cf3b06409acae569c23636ee91085fbeb5699 (patch)
treea93afd432db99174c8f10c33edb22226cca2c084 /db/migrate
parent972bbcb308d360c5468cd629dc5cdf356d556a2e (diff)
downloadchouette-core-020cf3b06409acae569c23636ee91085fbeb5699.tar.bz2
add offer workbench model #827
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160512105643_create_offer_workbenches.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20160512105643_create_offer_workbenches.rb b/db/migrate/20160512105643_create_offer_workbenches.rb
new file mode 100644
index 000000000..cc2b82152
--- /dev/null
+++ b/db/migrate/20160512105643_create_offer_workbenches.rb
@@ -0,0 +1,10 @@
+class CreateOfferWorkbenches < ActiveRecord::Migration
+ def change
+ create_table :offer_workbenches do |t|
+ t.string :name
+ t.references :organisation, index: true
+
+ t.timestamps
+ end
+ end
+end