diff options
Diffstat (limited to 'db/migrate/20240409004746_create_blogs.rb')
| -rw-r--r-- | db/migrate/20240409004746_create_blogs.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20240409004746_create_blogs.rb b/db/migrate/20240409004746_create_blogs.rb new file mode 100644 index 0000000..09b3442 --- /dev/null +++ b/db/migrate/20240409004746_create_blogs.rb @@ -0,0 +1,14 @@ +class CreateBlogs < ActiveRecord::Migration[7.1] + def change + create_table :blogs do |t| + t.string :name, null: false + t.string :category, null: false + t.text :content, null: false + t.string :image, default: 'https://tradam.dev/images/logo.png' + t.date :live_date + t.date :update_date + + t.timestamps + end + end +end |
