Sha256: 98836afecd644bb60957087a5b8cf3ea06568b31dab29df8342f27f0186c3776
Contents?: true
Size: 472 Bytes
Versions: 2
Compression:
Stored size: 472 Bytes
Contents
class CreateForumCategories < ActiveRecord::Migration[4.2] def change create_table :forum_categories do |t| t.string :name, null: false t.string :slug, null: false t.string :color, default: "000000" t.timestamps end ForumCategory.reset_column_information ForumCategory.create( name: "General", color: "#4ea1d3", ) ForumCategory.create( name: "Feedback", color: "#16bc9c", ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_discussion-1.2.0 | db/migrate/20170417012930_create_forum_categories.rb |
simple_discussion-1.0.1 | db/migrate/20170417012930_create_forum_categories.rb |