Sha256: cdeac0ad0f64efe2eaa756110d7b09904ffd47af6f8381b47df77f858df8231b
Contents?: true
Size: 387 Bytes
Versions: 28
Compression:
Stored size: 387 Bytes
Contents
class <%= config[:migration_title] %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change create_table :<%= config[:policy] %>_roles do |t| t.string :permission, null: false t.boolean :admin, default: true t.boolean :default, default: false end add_index :<%= config[:policy] %>_roles, :permission, unique: true end end
Version data entries
28 entries across 28 versions & 1 rubygems