mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 03:36:05 +01:00
14 lines
352 B
Ruby
14 lines
352 B
Ruby
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
|