Sha256: 33b53dfba743ab0adae629a38c62f86654c07dea554f2cd98d785e9d97262b5e

Contents?: true

Size: 446 Bytes

Versions: 9

Compression:

Stored size: 446 Bytes

Contents

class CreateSupportCategories < ActiveRecord::Migration[4.2]
  def change
    create_table :support_categories do |t|
      t.string   :name, null: false
      t.string   :slug, null: false
      t.string   :color, default: "000000"
      t.integer  :position, default: 0

      t.timestamps
    end

    SupportCategory.reset_column_information

    SupportCategory.create(
      name: "Getting Started",
      color: "#4ea1d3",
    )
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
help_center-0.1.0 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.9 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.8 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.7 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.6 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.4 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.3 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.2 db/migrate/20170417012930_create_support_categories.rb
help_center-0.0.1 db/migrate/20170417012930_create_support_categories.rb