about summary refs log tree commit diff stats
path: root/db/migrate/20231021020306_create_quotes.rb
blob: 60424e5979066fd268c910b3af8978fd0b69009c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CreateQuotes < ActiveRecord::Migration[7.0]
  def change
    create_table :quotes do |t|
      t.text :content, null: false
      t.string :state, null: false
      t.string :submitter
      t.text :notes, null: false
      t.integer :upvotes, null: false, default: 0
      t.integer :downvotes, null: false, default: 0

      t.timestamps
    end
  end
end