Sha256: 9fe5da634ced2c5b8d6326a6d37e81e63b27ae88f5094c14df416f0a69f02200
Contents?: true
Size: 1.14 KB
Versions: 4
Compression:
Stored size: 1.14 KB
Contents
ActiveRecord::Schema.define do self.verbose = false [ :roles, :privileges, :admin_rights ].each do |table| create_table(table) do |t| t.string :name t.references :resource, :polymorphic => true t.timestamps null: false end end [ :users, :human_resources, :customers, :admin_moderators ].each do |table| create_table(table) do |t| t.string :login end end create_table(:users_roles, :id => false) do |t| t.references :user t.references :role end create_table(:human_resources_roles, :id => false) do |t| t.references :human_resource t.references :role end create_table(:customers_privileges, :id => false) do |t| t.references :customer t.references :privilege end create_table(:moderators_rights, :id => false) do |t| t.references :moderator t.references :right end create_table(:forums) do |t| t.string :name end create_table(:groups) do |t| t.integer :parent_id t.string :name end create_table(:teams, :id => false) do |t| t.primary_key :team_code t.string :name end create_table(:organizations) do |t| t.string :type end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rolify-4.0.0 | spec/support/schema.rb |
rolify-3.5.2 | spec/support/schema.rb |
rolify-3.5.1 | spec/support/schema.rb |
rolify-3.5.0 | spec/support/schema.rb |