- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
013_add_textfilters.rb
Package: typo-5.4.4.zip [view]
Upload User: netsea168
Upload Date: 2022-07-22
Package Size: 4652k
Code Size: 1k
Category:
Ajax
Development Platform:
Others
- class Bare13TextFilter < ActiveRecord::Base
- include BareMigration
- end
- class AddTextfilters < ActiveRecord::Migration
- def self.up
- STDERR.puts "Adding TextFilters table"
- Bare13TextFilter.transaction do
- create_table :text_filters do |t|
- t.column :name, :string
- t.column :description, :string
- t.column :markup, :string
- t.column :filters, :text
- t.column :params, :text
- end
- Bare13TextFilter.create(:name => 'none', :description => 'None',
- :markup => 'none', :filters => [], :params => {})
- Bare13TextFilter.create(:name => 'markdown', :description => 'Markdown',
- :markup => "markdown", :filters => [], :params => {})
- Bare13TextFilter.create(:name => 'smartypants', :description => 'SmartyPants',
- :markup => 'none', :filters => [:smartypants], :params => {})
- Bare13TextFilter.create(:name => 'markdown smartypants', :description => 'Markdown with SmartyPants',
- :markup => 'markdown', :filters => [:smartypants], :params => {})
- Bare13TextFilter.create(:name => 'textile', :description => 'Textile',
- :markup => 'textile', :filters => [], :params => {})
- end
- end
- def self.down
- drop_table :text_filters
- end
- end