Skip to content

Commit

Permalink
adding changelog readme and license
Browse files Browse the repository at this point in the history
git-svn-id: svn://rubyforge.org/var/svn/artriggers/trunk/trigger_happy@2 57d87cb8-d8f3-44f2-a25c-9dac74195044
  • Loading branch information
aaronp committed Mar 1, 2007
1 parent 9049488 commit 7fe54fa
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
@@ -0,0 +1,6 @@
= CHANGELOG

== 0.0.1

* Birthday!

22 changes: 22 additions & 0 deletions MIT-LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2007 Aaron Patterson (aaronp@rubyforge.org)

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
26 changes: 26 additions & 0 deletions README
@@ -0,0 +1,26 @@
= Trigger Happy

Add triggers to your active record migrations.

== INSTALL

script/plugin install svn://rubyforge.org/var/svn/artriggers/trunk/trigger_happy

== EXAMPLE

Add a trigger:

add_trigger "ai_people",
:on => 'people',
:timing => 'after',
:event => 'inert',
:statement => 'INSERT INTO log (id, timestamp) VALUES (NEW.id, NOW())'

Remove a trigger:

drop_trigger 'ai_people'

== LIMITATIONS

Only works with mysql for now.

0 comments on commit 7fe54fa

Please sign in to comment.