Sha256: fefa4eeffdcb941c681660624963500461c9baa6e8504a8ff50714ba8a0c79fb
Contents?: true
Size: 968 Bytes
Versions: 5
Compression:
Stored size: 968 Bytes
Contents
# frozen_string_literal: true class RemoveProfiles < ActiveRecord::Migration[4.2] set_role "blog_content" class Profile < ActiveRecord::Base serialize :modules end def up drop_table :profiles end def down create_table :profiles, schema: "blog_content" 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
5 entries across 5 versions & 1 rubygems