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