Sha256: 6673fa9dada58f50f70f0cc69f9c954ceaa2cad82d9358116fd77d7ff340949f

Contents?: true

Size: 753 Bytes

Versions: 11

Compression:

Stored size: 753 Bytes

Contents

ActiveRecord::Schema.define do
  self.verbose = false

  create_table(:roles) do |t|
    t.string :name
    t.references :resource, :polymorphic => true

    t.timestamps
  end
  
  create_table(:users) do |t|
    t.string :login
  end

  create_table(:users_roles, :id => false) do |t|
    t.references :user
    t.references :role
  end
  
  create_table(:forums) do |t|
    t.string :name
  end
  
  create_table(:groups) do |t|
    t.string :name
  end

  create_table(:privileges) do |t|
    t.string :name
    t.references :resource, :polymorphic => true
  end

  create_table(:customers) do |t|
    t.string :login
  end

  create_table(:customers_privileges, :id => false) do |t|
    t.references :customer
    t.references :privilege
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rolify-3.2.0 spec/support/schema.rb
rolify-3.2.0.rc2 spec/support/schema.rb
rolify-3.1.0 spec/support/schema.rb
rolify-3.0.0 spec/support/schema.rb
rolify-2.2.2 spec/support/schema.rb
rolify-2.2.1 spec/support/schema.rb
rolify-2.2.0 spec/support/schema.rb
rolify-2.1.0 spec/support/schema.rb
rolify-2.0.0 spec/support/schema.rb
rolify-1.2.0 spec/support/schema.rb
rolify-1.1.0 spec/support/schema.rb