add message model and migration
This commit is contained in:
11
db/migrate/20220512140948_create_messages.rb
Normal file
11
db/migrate/20220512140948_create_messages.rb
Normal 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
|
Reference in New Issue
Block a user