diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-27 13:03:07 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-27 21:29:59 +0200 |
commit | 8c5622f0d4d3b5c6bce52b0eb22756a83060b1b1 (patch) | |
tree | a09d54d92582028e343d731fa9fafef352145119 /railties/lib/generators/generated_attribute.rb | |
parent | 9acb721e6a4e78bdd1b9d5f9fb80f4ed2b263b34 (diff) | |
download | rails-8c5622f0d4d3b5c6bce52b0eb22756a83060b1b1.tar.gz rails-8c5622f0d4d3b5c6bce52b0eb22756a83060b1b1.tar.bz2 rails-8c5622f0d4d3b5c6bce52b0eb22756a83060b1b1.zip |
Initial scratch of model generators.
Diffstat (limited to 'railties/lib/generators/generated_attribute.rb')
-rw-r--r-- | railties/lib/generators/generated_attribute.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/generators/generated_attribute.rb b/railties/lib/generators/generated_attribute.rb index 0ead945281..7cd1fed8a4 100644 --- a/railties/lib/generators/generated_attribute.rb +++ b/railties/lib/generators/generated_attribute.rb @@ -1,11 +1,10 @@ module Rails module Generators class GeneratedAttribute - attr_accessor :name, :type, :column + attr_accessor :name, :type def initialize(name, type) @name, @type = name, type.to_sym - @column = ActiveRecord::ConnectionAdapters::Column.new(@name, nil, @type) end def field_type |