Sha256: d8139c8962cd20e0a4adb1cd057f009c9137aada8c9119f08a5b811cab7bdc48
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
class CreateTextAssets < ActiveRecord::Migration def self.up create_table :text_assets do |t| t.string :class_name, :limit => 25 t.string :filename, :limit => 100 t.text :content t.timestamps t.integer :created_by_id, :updated_by_id, :lock_version end end def self.down drop_table :text_assets [ 'stylesheet_directory', 'javascript_directory', 'stylesheet_mime_type', 'javascript_mime_type', 'response_cache_directory' ].each do |config_name| id = Radiant::Config.find_by_key(config_name).id Radiant::Config.delete(id) unless id.nil? say "Removed config for #{config_name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-sns-extension-0.9.0 | db/migrate/001_create_text_assets.rb |