This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/00170_create_comments.rb
2021-08-23 10:26:02 +02:00

21 lines
671 B
Ruby

class CreateComments < ActiveRecord::Migration[6.0]
def change
create_table :comments do |t|
t.string :pseudo, :default => ""
t.string :email, :default => ""
t.string :website, :default => ""
t.boolean :enabled, :default => false
t.text :comment
t.string :commentable_type
t.references :commentable, index: true
t.integer :user_id
t.references :parent, index: true
t.boolean :notified, :default => false
t.datetime :notified_at
t.references :lang_site, :default => 1, index: true
t.timestamps
end
end
end