diff options
| author | Alban Peignier | 2016-05-10 16:50:09 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2016-05-10 16:53:01 +0200 | 
| commit | 7b8b23d00e0fa263a566484dceb04361cf77432a (patch) | |
| tree | 1ec638d5eafa6f010814d503227334474bc7c8aa /db/migrate | |
| parent | 304040cf0fae4673bf5913b0d09da5fda5227b8e (diff) | |
| download | chouette-core-7b8b23d00e0fa263a566484dceb04361cf77432a.tar.bz2 | |
Create LineReferential with a basic controller and a seed for STIF context. Refs #824
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20160510125443_create_line_referentials.rb | 15 | 
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  | 
