Permalink
Browse files

adding changelog readme and license

git-svn-id: svn://rubyforge.org/var/svn/artriggers/trunk/trigger_happy@2 57d87cb8-d8f3-44f2-a25c-9dac74195044
  • Loading branch information...
1 parent 9049488 commit 7fe54fa09ebad5413b3d0c5a265ec2fdab3dc8bc aaronp committed Mar 1, 2007
Showing with 54 additions and 0 deletions.
  1. +6 −0 CHANGELOG
  2. +22 −0 MIT-LICENSE
  3. +26 −0 README
View
6 CHANGELOG
@@ -0,0 +1,6 @@
+= CHANGELOG
+
+== 0.0.1
+
+ * Birthday!
+
View
22 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.
View
26 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.