Sha256: 8000700295e0b5aa8e4b7d2158eebe53c5426be0b48c87b9cc66d641ccbf17d0
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
class CreateRoles < ActiveRecord::Migration def self.up create_table :roles do |t| t.column :name, :string, :limit => 128, :null => false t.column :code, :string, :limit => 128, :null => false t.column :about, :string, :limit => 128, :null => false t.timestamps end # Create constraints add_index :roles, :name, :unique add_index :roles, :code, :unique end def self.down drop_table :roles end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
role_based_security-0.5.0 | lib/generators/role_based_security/templates/20110510155623_create_roles.rb |