Create model for votes with secure_id, title, and description
This commit is contained in:
parent
5e8cda6fc0
commit
f7f1807839
9 changed files with 106 additions and 10 deletions
11
db/migrate/20250321213011_create_votes.rb
Normal file
11
db/migrate/20250321213011_create_votes.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class CreateVotes < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :votes do |t|
|
||||
t.string :secure_id
|
||||
t.string :title
|
||||
t.text :description
|
||||
t.datetime :expire_on
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue