Sha256: fc4302186246ec22d4ed0c5a7b671b27a230cc67125ab6a3fbc1a29a83bd4129

Contents?: true

Size: 573 Bytes

Versions: 3

Compression:

Stored size: 573 Bytes

Contents

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

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

    t.timestamps
  end

  create_table(:users) do |t|
    t.string :login
  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
    t.references :customer
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roles-0.2.1 spec/support/schema.rb
roles-0.2.0 spec/support/schema.rb
roles-0.1.0 spec/support/schema.rb