Sha256: d3b8bf7708c556c32412ad8e5490809a8d3b65faad6569512e9dbb36cefdb8fb
Contents?: true
Size: 371 Bytes
Versions: 4
Compression:
Stored size: 371 Bytes
Contents
class Roles < ActiveRecord::Migration class Role < ActiveRecord::Base end def change create_table :user_roles do |t| t.integer :user_id t.integer :role_id t.timestamps end create_table :roles do |t| t.string :name t.timestamps end Role.create!(name: 'account_holder') Role.create!(name: 'admin') end end
Version data entries
4 entries across 4 versions & 1 rubygems