add emails for newsletter

This commit is contained in:
2023-05-01 15:11:01 +03:30
parent 0797f9798d
commit 6c358e757a
12 changed files with 77 additions and 5 deletions

View File

@ -0,0 +1,7 @@
class CreateEmails < ActiveRecord::Migration[6.0]
def change
create_table :emails do |t|
t.string :email, null: false
end
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_05_12_140948) do
ActiveRecord::Schema.define(version: 2023_05_01_112440) do
create_table "active_admin_comments", force: :cascade do |t|
t.string "namespace"
@ -38,6 +38,10 @@ ActiveRecord::Schema.define(version: 2022_05_12_140948) do
t.index ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true
end
create_table "emails", force: :cascade do |t|
t.string "email", null: false
end
create_table "messages", force: :cascade do |t|
t.string "title"
t.text "description"
@ -45,6 +49,7 @@ ActiveRecord::Schema.define(version: 2022_05_12_140948) do
t.string "phone"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "name"
end
end