Sha256: 1169c2b99f3c23038c7df92d152407f6233b3cb465521bd07b6092c17ba0e76c
Contents?: true
Size: 796 Bytes
Versions: 3
Compression:
Stored size: 796 Bytes
Contents
class RemoveProfiles < ActiveRecord::Migration[4.2] class Profile < ActiveRecord::Base serialize :modules end def up drop_table :profiles end def down create_table :profiles do |t| t.string :label t.string :nicename t.text :modules end Profile.create!(label: 'admin', nicename: 'Publify administrator', modules: [:dashboard, :articles, :notes, :pages, :feedback, :media, :themes, :sidebar, :profile, :users, :settings, :seo]) Profile.create!(label: 'publisher', nicename: 'Blog publisher', modules: [:dashboard, :articles, :notes, :pages, :feedback, :media, :profile]) Profile.create!(label: 'contributor', nicename: 'Contributor', modules: [:dashboard, :profile]) end end
Version data entries
3 entries across 3 versions & 1 rubygems