Sha256: 4642a79327075d07c0bacb8b38800eb8b6b64285d4a8cd9b52de21afc6c0540b

Contents?: true

Size: 259 Bytes

Versions: 5

Compression:

Stored size: 259 Bytes

Contents

class CreateCalendars < ActiveRecord::Migration[5.1]
  def change
    create_table :calendars do |t|
      t.string :name
      t.string :slug
      t.text :description
      t.string :css_class
    end
    add_index :calendars, :slug, unique: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
date_book-0.0.6 db/migrate/20170807133845_create_calendars.rb
date_book-0.0.5 db/migrate/20170807133845_create_calendars.rb
date_book-0.0.3 db/migrate/20170807133845_create_calendars.rb
date_book-0.0.2 db/migrate/20170807133845_create_calendars.rb
date_book-0.0.1 db/migrate/20170807133845_create_calendars.rb