Sha256: d248e854b5cb7c2b49c3f76bbf29be9d3ab066d2b2e4a07bba57e9e72f078249

Contents?: true

Size: 836 Bytes

Versions: 16

Compression:

Stored size: 836 Bytes

Contents

ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'object_models'")
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'subject_models'")
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'can_haz_permissions'")
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS 'foo_models'")

ActiveRecord::Schema.define(:version => 0) do

  create_table :object_models do |t|

  end

  create_table :subject_models do |t|

  end

  create_table :can_haz_permissions do |t|
    t.integer :csubject_id
    t.string :csubject_type

    t.integer :cobject_id
    t.string :cobject_type

    t.string :permission_name
  end

  add_index :can_haz_permissions, :csubject_id, :name => 'subject_id_ix'
  add_index :can_haz_permissions, :cobject_id, :name => 'object_id_ix'

  create_table :foo_models do |t|
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rails-canhaz-2.0.2 test/schema.rb
rails-canhaz-2.0.1 test/schema.rb
rails-canhaz-1.0.7 test/schema.rb
rails-canhaz-2.0.0.pre1 test/schema.rb
rails-canhaz-2.0.0.pre test/schema.rb
rails-canhaz-1.0.6 test/schema.rb
rails-canhaz-1.0.5 test/schema.rb
rails-canhaz-1.0.4 test/schema.rb
rails-canhaz-1.0.1 test/schema.rb
rails-canhaz-1.0.0 test/schema.rb
rails-canhaz-0.4.1 test/schema.rb
rails-canhaz-0.4.0 test/schema.rb
rails-canhaz-0.3.0 test/schema.rb
rails-canhaz-0.2.0 test/schema.rb
rails-canhaz-0.1.2 test/schema.rb
rails-canhaz-0.1.1 test/schema.rb