Sha256: 0a00d4be34a9ae9bf86f816ad1196bbc50e90d7e4c17dac7e1a65dabbb6fe71c

Contents?: true

Size: 215 Bytes

Versions: 24

Compression:

Stored size: 215 Bytes

Contents

class AddNotNullColumnToTable < ActiveRecord::Migration
  def self.up
    add_column :entries, :color, :string, :null => false, :default => "blue"
  end

  def self.down
    remove_column :entries, :color
  end
end

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.3.0.beta2 test/models/add_not_null_column_to_table.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.2.9 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.2.8 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.2.5 test/models/add_not_null_column_to_table.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 test/models/add_not_null_column_to_table.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 test/models/add_not_null_column_to_table.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 test/models/add_not_null_column_to_table.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.2.2.1 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-onsite-1.2.2 test/models/add_not_null_column_to_table.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.2.2 test/models/add_not_null_column_to_table.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.2.1 test/models/add_not_null_column_to_table.rb
c3-activerecord-jdbc-adapter-1.1.3.1 test/models/add_not_null_column_to_table.rb
activerecord-jdbc-adapter-1.2.0 test/models/add_not_null_column_to_table.rb
c3-activerecord-jdbc-adapter-1.1.3 test/models/add_not_null_column_to_table.rb