Sha256: a47212caaa64dad1b1354184ffe8cdbd0be56e0c2abf46bb3e5a463369edaf90

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

# This migration comes from date_book (originally 20170807133846)
class CreateEvents < ActiveRecord::Migration[5.1]
  def change
    create_table :events do |t|
      t.references :calendar

      t.string :name
      t.string :slug, unique: true
      t.text :description

      t.string :css_class
      t.string :text_color, default: '#ffffff'
      t.string :background_color, default: '#3a87ad'
      t.string :border_color, default: '#235371'

      t.date :start_date
      t.time :start_time

      t.integer :duration
      t.boolean :all_day

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
date_book-0.0.6 spec/dummy/db/migrate/20170808150916_create_events.date_book.rb