1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Content is now supplied by dedicated model

This commit is contained in:
David Heinemeier Hansson 2018-05-29 16:13:07 +02:00
parent d8086477b1
commit ddfc963d35
2 changed files with 10 additions and 3 deletions

View file

@ -2,8 +2,6 @@ class CreateMessages < ActiveRecord::Migration[5.2]
def change
create_table :messages do |t|
t.string :subject
t.text :content
t.timestamps
end
end

View file

@ -12,6 +12,16 @@
ActiveRecord::Schema.define(version: 2018_02_12_164506) do
create_table "action_text_rich_texts", force: :cascade do |t|
t.string "name", null: false
t.text "body", null: false
t.string "record_type", null: false
t.integer "record_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true
end
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@ -35,7 +45,6 @@ ActiveRecord::Schema.define(version: 2018_02_12_164506) do
create_table "messages", force: :cascade do |t|
t.string "subject"
t.text "content"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end