First Commit
This commit is contained in:
commit
b5b83e939a
213 changed files with 8688 additions and 0 deletions
13
db/migrate/20150804131511_create_commentaires.rb
Normal file
13
db/migrate/20150804131511_create_commentaires.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
class CreateCommentaires < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :commentaires do |t|
|
||||
t.string :email
|
||||
t.date :created_at
|
||||
t.string :body
|
||||
t.references :dossier, index: true
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
add_foreign_key :commentaires, :dossiers
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue