class CreateComments

typed: true

Public Instance Methods

change() click to toggle source
# File server/redux-os/db/migrate/20190918222028_create_comments.rb, line 3
def change
  create_table :comments do |t|
    t.references :banal_brainstorm
    t.text :comment_text
    t.integer :parent_id

    t.timestamps
  end
  add_index :comments, :parent_id, unique: true
end