github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

eyestreet / active_record_oracle_extensions

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 12
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Support for foreign key migrations, synonyms, and disabling of referential integrity during fixture loads with oracle. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Deprecation Notice. 
rwc9u (author)
Wed Oct 21 07:20:32 -0700 2009
commit  8dd5e5e32218218a2ebf5d3895511b4b283eb615
tree    60fc2460d5e334bb9fcfe153b931ef387fa27f12
parent  fd612ceda724d7b8e3bd647011bb194e263e6ff0
active_record_oracle_extensions /
name age
history
message
file MIT-LICENSE Fri Jan 02 09:43:42 -0800 2009 initial commit [rwc9u]
file README Wed Oct 21 07:20:32 -0700 2009 Deprecation Notice. [rwc9u]
file Rakefile Fri Jan 02 09:43:42 -0800 2009 initial commit [rwc9u]
file init.rb Fri Jan 02 09:43:42 -0800 2009 initial commit [rwc9u]
file install.rb Fri Jan 02 09:43:42 -0800 2009 initial commit [rwc9u]
directory lib/ Wed Feb 18 22:54:59 -0800 2009 Added specific oracle support for db:structure:... [rwc9u]
directory tasks/ Fri Jan 02 09:43:42 -0800 2009 initial commit [rwc9u]
directory test/ Fri Jan 02 09:43:42 -0800 2009 initial commit [rwc9u]
file uninstall.rb Fri Jan 02 09:43:42 -0800 2009 initial commit [rwc9u]
README
ActiveRecordOracleExtensions
============================

THIS PLUGIN IS DEPRECATED. THESE FEATURES HAVE BEEN ADDED TO THE ActiveRecord Oracle Enhanced Adapter.

http://github.com/rsim/oracle-enhanced


This plugin provides Oracle support for the following:

-- adding and removing foreign keys from within a rails migration. 
-- disabling foreign key constraints during the loading of fixtures so that you don't have to worry about the order of 
creation and inserts of your data via
your fixtures.
-- adding and removing synonyms from within a rails migration.
-- A patch for Rails 2.2 that fixes table alias syntax issues with preloading associations

I based this code off of 

atmos.org - http://sample.caboo.se/plugins/atmos/activerecord_foreign_key_extensions 

which was an update for oracle support to the
 
bubbleware.com - http://www.bubbleshare.com/tools/ActiveRecordExtensions.zip

However, neither of these seems to be up actively developed so I have rolled the Oracle specific pieces into this 
plugin.

Example
=======

Adding a foreign key constraint:

def self.up
    create_table :assets, :force => true do |t|
      t.integer :media_record_id
      t.string  :media_file_name
      t.string  :media_content_type
      t.integer :media_file_size
      t.datetime :media_updated_at
      t.timestamps
    end
    add_foreign_key_constraint :assets, :media_record_id, :media_records, :id

 end

Adding a synonym events for foo.events:

add_synonym :events, :foo, :events, :force => true



Copyright (c) 2008 Rob Christie, released under the MIT license
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server