Sha256: 712d7022cf5ca1343d421176dde3dd2eb4937839bf6f287f1171d7cd9fa1c9b4

Contents?: true

Size: 532 Bytes

Versions: 10

Compression:

Stored size: 532 Bytes

Contents

class CreateStaticPages < ActiveRecord::Migration
  def self.up

    # Not using this anymore, but leaving the migration for compatibility

    # create_table :static_pages do |t|
    #   t.string :title
    #   t.string :url
    #   t.text :content
    #   t.boolean :active, :default => false
    #   t.string :visibility, :default => 'Everyone' 
    # 
    #   t.timestamps
    # end
  end

  def self.down
    if ActiveRecord::Base.connection.tables.include?('static_pages')    
      drop_table :static_pages
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/067_create_static_pages.rb
community_engine-3.0.0 db/migrate/067_create_static_pages.rb
community_engine-2.3.2 db/migrate/067_create_static_pages.rb
community_engine-2.3.1 db/migrate/067_create_static_pages.rb
community_engine-2.3.0 db/migrate/067_create_static_pages.rb
community_engine-2.1.0 db/migrate/067_create_static_pages.rb
community_engine-2.0.0 db/migrate/067_create_static_pages.rb
community_engine-2.0.0.beta3 db/migrate/067_create_static_pages.rb
community_engine-2.0.0.beta2 db/migrate/067_create_static_pages.rb
community_engine-2.0.0.beta1 db/migrate/067_create_static_pages.rb