initial commit
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

https://guides.rubyonrails.org/getting_started.html#creating-a-database-model
This commit is contained in:
Stefan Tollkühn
2025-09-10 15:48:40 +02:00
parent c66813a3cc
commit eb2033a6fd
95 changed files with 2575 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
class CreateProjects < ActiveRecord::Migration[8.0]
def change
create_table :projects do |t|
t.string :name
t.string :email
t.string :shortname
t.date :offer_date
t.date :order_date
t.timestamps
end
end
end

9
db/seeds.rb Normal file
View File

@@ -0,0 +1,9 @@
# This file should ensure the existence of records required to run the application in every environment (production,
# development, test). The code here should be idempotent so that it can be executed at any point in every environment.
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
#
# Example:
#
# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|
# MovieGenre.find_or_create_by!(name: genre_name)
# end