added friends
This commit is contained in:
12
db/migrate/20251119093322_create_friends.rb
Normal file
12
db/migrate/20251119093322_create_friends.rb
Normal file
@ -0,0 +1,12 @@
|
||||
class CreateFriends < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :friends do |t|
|
||||
t.string :firstname, null: false
|
||||
t.string :lastname, null: false
|
||||
t.string :email, null: false
|
||||
t.string :telefon, null: false
|
||||
t.integer :level, default: 5
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/schema.rb
generated
11
db/schema.rb
generated
@ -10,5 +10,14 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 0) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_11_19_093322) do
|
||||
create_table "friends", force: :cascade do |t|
|
||||
t.string "firstname", null: false
|
||||
t.string "lastname", null: false
|
||||
t.string "email", null: false
|
||||
t.string "telefon", null: false
|
||||
t.integer "level", default: 5
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user