Sha256: 66b7e6dae8845cb463fbc4ff3535df6a90ee3658f445611755ecfe409ea07eaf

Contents?: true

Size: 921 Bytes

Versions: 15

Compression:

Stored size: 921 Bytes

Contents

ActiveRecord::Schema.define do
  create_table :enumerations, :force => true do |t|
    t.column :severity, :enum, :limit => [:low, :medium, :high, :critical],
       :default => :medium
    t.column :color, :enum, :limit => [:red, :blue, :green, :yellow]
    t.column :string_field, :string, :limit => 8, :null => false
    t.column :int_field, :integer
  end


  create_table :basic_enums, :force => true  do |t|
    t.column :value, :enum, :limit => [:good, :working]
  end
  
  create_table :basic_default_enums, :force => true  do |t|
    t.column :value, :enum, :limit => [:good, :working],:default => :working
  end

  create_table :nonnull_enums, :force => true  do |t|
    t.column :value, :enum, :limit => [:good, :working],:null => false
  end

  create_table :nonnull_default_enums, :force => true  do |t|
    t.column :value, :enum, :limit => [:good, :working],:null => false,:default => :working
  end

end

Version data entries

15 entries across 15 versions & 7 rubygems

Version Path
mysql_enum_column-0.2.0 test/db/schema.rb
dg-enum_column4-0.1.7 test/db/schema.rb
dg-enum_column4-0.1.6 test/db/schema.rb
dg-enum_column4-0.1.4 test/db/schema.rb
smukherjee-openbill-0.1.5 vendor/plugins/enum-column/test/db/schema.rb
smukherjee-openbill-0.1.6 vendor/plugins/enum-column/test/db/schema.rb
smukherjee-openbill-0.1.7 vendor/plugins/enum-column/test/db/schema.rb
enum_column_strict-0.0.2 test/db/schema.rb
enum_column_strict-0.0.1 test/db/schema.rb
enum_column3-0.1.4 test/db/schema.rb
enum_column3-0.1.3 test/db/schema.rb
enum_column-0.1.1 test/db/schema.rb
enum_column-0.1.0 test/db/schema.rb
openbill-0.1.6 vendor/plugins/enum-column/test/db/schema.rb
openbill-0.1.5 vendor/plugins/enum-column/test/db/schema.rb