activerecord-interbase-adapter 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -601,8 +601,8 @@ module ActiveRecord
601
601
  columns = []
602
602
 
603
603
  table_definition.columns.each() do |col|
604
- new_col = IBRuby::InterBaseColumn.new( quote_column_name(col.name), name, rails_type_to_native_type[col.type],
605
- nil, !col.null.nil? && !col.null, col.limit, col.precision, col.scale, rails_type_to_native_sub_type[col.type],
604
+ new_col = IBRuby::InterBaseColumn.new( quote_column_name(col.name), name, rails_type_to_native_type[col.type.to_sym],
605
+ nil, !col.null.nil? && !col.null, col.limit, col.precision, col.scale, rails_type_to_native_sub_type[col.type.to_sym],
606
606
  col.default )
607
607
 
608
608
  columns << new_col
@@ -755,7 +755,7 @@ module ActiveRecord
755
755
 
756
756
  push_options_into_ib_column( new_col, options )
757
757
 
758
- if (new_col.type == IBRuby::InterBaseColumn::VARCHAR) && new_col.length.nil?
758
+ if (new_col.type.to_sym == IBRuby::InterBaseColumn::VARCHAR) && new_col.length.nil?
759
759
  new_col.length = 255;
760
760
  end
761
761
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: activerecord-interbase-adapter
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.0
7
- date: 2008-02-23 00:00:00 +13:00
6
+ version: 0.3.0
7
+ date: 2008-03-01 00:00:00 +13:00
8
8
  summary: Rails interface library for the InterBase database.
9
9
  require_paths:
10
10
  - lib