aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160510125443_create_line_referentials.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20160510125443_create_line_referentials.rb b/db/migrate/20160510125443_create_line_referentials.rb
new file mode 100644
index 000000000..293000dd9
--- /dev/null
+++ b/db/migrate/20160510125443_create_line_referentials.rb
@@ -0,0 +1,15 @@
+class CreateLineReferentials < ActiveRecord::Migration
+ def change
+ create_table :line_referentials do |t|
+ t.string :name
+
+ t.timestamps
+ end
+
+ create_table :line_referential_memberships do |t|
+ t.belongs_to :organisation
+ t.belongs_to :line_referential
+ t.boolean :owner
+ end
+ end
+end