diff options
author | Chris Oliver <excid3@gmail.com> | 2019-03-05 11:29:32 -0600 |
---|---|---|
committer | Chris Oliver <excid3@gmail.com> | 2019-03-05 11:29:32 -0600 |
commit | 764803e07a5c89c931df9a1c4fe730f73b7571e6 (patch) | |
tree | 2cb6bd66a4011cbf1a1f6aa3068cf7587cd85303 /actiontext/test/dummy | |
parent | 50226c8fe0498713c89679713a407777ece16205 (diff) | |
download | rails-764803e07a5c89c931df9a1c4fe730f73b7571e6.tar.gz rails-764803e07a5c89c931df9a1c4fe730f73b7571e6.tar.bz2 rails-764803e07a5c89c931df9a1c4fe730f73b7571e6.zip |
Adds default trix partial
Diffstat (limited to 'actiontext/test/dummy')
-rw-r--r-- | actiontext/test/dummy/app/models/page.rb | 4 | ||||
-rw-r--r-- | actiontext/test/dummy/db/migrate/20190305172303_create_pages.rb | 9 | ||||
-rw-r--r-- | actiontext/test/dummy/db/schema.rb | 8 |
3 files changed, 20 insertions, 1 deletions
diff --git a/actiontext/test/dummy/app/models/page.rb b/actiontext/test/dummy/app/models/page.rb new file mode 100644 index 0000000000..dfebf282a7 --- /dev/null +++ b/actiontext/test/dummy/app/models/page.rb @@ -0,0 +1,4 @@ +class Page < ApplicationRecord + include ActionText::Attachable +end + diff --git a/actiontext/test/dummy/db/migrate/20190305172303_create_pages.rb b/actiontext/test/dummy/db/migrate/20190305172303_create_pages.rb new file mode 100644 index 0000000000..3a71e55d94 --- /dev/null +++ b/actiontext/test/dummy/db/migrate/20190305172303_create_pages.rb @@ -0,0 +1,9 @@ +class CreatePages < ActiveRecord::Migration[6.0] + def change + create_table :pages do |t| + t.string :title + + t.timestamps + end + end +end diff --git a/actiontext/test/dummy/db/schema.rb b/actiontext/test/dummy/db/schema.rb index 2388986835..60ccbd4873 100644 --- a/actiontext/test/dummy/db/schema.rb +++ b/actiontext/test/dummy/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2018_10_03_185713) do +ActiveRecord::Schema.define(version: 2019_03_05_172303) do create_table "action_text_rich_texts", force: :cascade do |t| t.string "name", null: false @@ -49,6 +49,12 @@ ActiveRecord::Schema.define(version: 2018_10_03_185713) do t.datetime "updated_at", precision: 6, null: false end + create_table "pages", force: :cascade do |t| + t.string "title" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + end + create_table "people", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false |