13 lines
330 B
Ruby
13 lines
330 B
Ruby
class CreateParties < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :parties do |t|
|
|
t.string :title, null: false
|
|
t.string :location, null: false
|
|
t.date :start_date, null: false
|
|
t.time :start_time, null: false
|
|
t.string :status, default: 'undefiniert'
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|