Sha256: 5b1da819a663a047e63cef61b5fe4268aad482c52aec71e64c006ea7d494447e

Contents?: true

Size: 192 Bytes

Versions: 2

Compression:

Stored size: 192 Bytes

Contents

module Automigration
  module Fields
    class Boolean < Sys::Base
      def to_db_columns
        [db_column_for_standart_types(:default => !!@options[:default])]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
automigration-0.2.2 lib/automigration/fields/boolean.rb
automigration-0.2.1 lib/automigration/fields/boolean.rb