add message model and migration

This commit is contained in:
bijan
2022-05-12 19:44:54 +04:30
parent a6721fed75
commit 0185ac276c
7 changed files with 67 additions and 3 deletions

View File

@ -0,0 +1,11 @@
class CreateMessages < ActiveRecord::Migration[6.0]
def change
create_table :messages do |t|
t.string :title
t.text :description
t.string :email, null: false
t.string :phone
t.timestamps
end
end
end