aboutsummaryrefslogtreecommitdiff
path: root/db/migrate/20240225071927_create_searches.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20240225071927_create_searches.rb')
-rw-r--r--db/migrate/20240225071927_create_searches.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20240225071927_create_searches.rb b/db/migrate/20240225071927_create_searches.rb
new file mode 100644
index 0000000..a2a42e7
--- /dev/null
+++ b/db/migrate/20240225071927_create_searches.rb
@@ -0,0 +1,11 @@
+class CreateSearches < ActiveRecord::Migration[7.1]
+ def change
+ create_table :searches do |t|
+ t.string :name
+ t.string :body
+ t.references :user, null: false, foreign_key: true
+
+ t.timestamps
+ end
+ end
+end