Retrospring/db/migrate/20200419183714_create_annou...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
383 B
Ruby
Raw Normal View History

2023-10-19 16:37:34 -07:00
# frozen_string_literal: true
2020-04-19 12:12:22 -07:00
class CreateAnnouncements < ActiveRecord::Migration[5.2]
def change
create_table :announcements do |t|
t.text :content, null: false
t.string :link_text
t.string :link_href
t.datetime :starts_at, null: false
t.datetime :ends_at, null: false
t.belongs_to :user, null: false
t.timestamps
end
end
end