first commit, largely copied volunteers
This commit is contained in:
12
db/migrate/20230125172223_create_pictures.rb
Normal file
12
db/migrate/20230125172223_create_pictures.rb
Normal file
@ -0,0 +1,12 @@
|
||||
class CreatePictures < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :pictures do |t|
|
||||
t.string :picture
|
||||
t.string :text
|
||||
t.date :happened
|
||||
t.references :member, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user