Sha256: 3662e7939b7abd8276a819820846e4d66e4cd98c23c3cda21c8a567c664f6d8f

Contents?: true

Size: 1.02 KB

Versions: 13

Compression:

Stored size: 1.02 KB

Contents

# WontoMedia - a wontology web application
# Copyright (C) 2009 - Glen E. Ivey
#    www.wontology.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version
# 3 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program in the file COPYING and/or LICENSE.  If not,
# see <http://www.gnu.org/licenses/>.


class FlagsColumnsNotNull < ActiveRecord::Migration
  def self.up
    change_column :items, :flags, :integer, :null => false
    change_column :connections, :flags, :integer, :null => false
  end

  def self.down
    change_column :items, :flags, :integer
    change_column :connections, :flags, :integer
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wontomedia-1.0.7 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-1.0.6 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-1.0.5 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-1.0.4 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-1.0.2 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-1.0.1 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-1.0.0 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-0.2.1 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-0.2.0 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-0.1.1 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-0.1.0 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-0.0.2 db/migrate/20090605213800_flags_columns_not_null.rb
wontomedia-0.0.1 db/migrate/20090605213800_flags_columns_not_null.rb