polishing stories views

This commit is contained in:
2023-01-11 20:52:58 +02:00
parent 23a2254d2e
commit 0055de6c83
14 changed files with 90 additions and 80 deletions

View File

@ -1,6 +1,7 @@
class CreateStories < ActiveRecord::Migration[7.0]
def change
create_table :stories do |t|
t.references :member
t.string :picture
t.string :header
t.text :text

2
db/schema.rb generated
View File

@ -47,12 +47,14 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_11_164425) do
end
create_table "stories", force: :cascade do |t|
t.bigint "member_id"
t.string "picture"
t.string "header"
t.text "text"
t.date "happened"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["member_id"], name: "index_stories_on_member_id"
end
create_table "thredded_categories", force: :cascade do |t|