Skip to content

Commit

Permalink
create event table
Browse files Browse the repository at this point in the history
  • Loading branch information
kesleymartins committed Aug 6, 2022
1 parent 6f231ae commit c9fd50a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/event.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Event < ApplicationRecord
end
12 changes: 12 additions & 0 deletions db/migrate/20220806235519_create_events.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class CreateEvents < ActiveRecord::Migration[7.0]
def change
create_table :events do |t|
t.string :title
t.text :description
t.datetime :start_time
t.datetime :end_time

t.timestamps
end
end
end
23 changes: 23 additions & 0 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c9fd50a

Please sign in to comment.