aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorAlban Peignier2016-05-04 15:49:57 +0200
committerAlban Peignier2016-05-04 15:49:57 +0200
commit84dad3d53cc9ee0f237c5065314de00b1b0c7e5e (patch)
tree381c85b49101d99185d53f35e7ce5ff832fdfee6 /db/migrate
parent63c4406d7a9b1efcccd74dd67c338be48c71b1b8 (diff)
downloadchouette-core-84dad3d53cc9ee0f237c5065314de00b1b0c7e5e.tar.bz2
Create StopAreaReferential with a basic controller and a seed for STIF context. Refs #820
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160504130055_create_stop_area_referentials.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20160504130055_create_stop_area_referentials.rb b/db/migrate/20160504130055_create_stop_area_referentials.rb
new file mode 100644
index 000000000..7c7fc0285
--- /dev/null
+++ b/db/migrate/20160504130055_create_stop_area_referentials.rb
@@ -0,0 +1,15 @@
+class CreateStopAreaReferentials < ActiveRecord::Migration
+ def change
+ create_table :stop_area_referentials do |t|
+ t.string :name
+
+ t.timestamps
+ end
+
+ create_table :stop_area_referential_memberships do |t|
+ t.belongs_to :organisation
+ t.belongs_to :stop_area_referential
+ t.boolean :owner
+ end
+ end
+end