Sha256: 38391094e0013f79aa738cab7a67baddd2402d51fd35c27c1dd17587214b05e4
Contents?: true
Size: 280 Bytes
Versions: 1
Compression:
Stored size: 280 Bytes
Contents
class CreateRoles < ActiveRecord::Migration def self.up create_table :roles do |t| t.column :name, :string, :null => false t.column :description, :text end add_index :roles, :name, :unique => true end def self.down drop_table :roles end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
has_roles-0.0.2 | db/migrate/003_create_roles.rb |