diff options
author | sjain1107 <sakshijain1107@gmail.com> | 2015-08-18 10:37:44 +0530 |
---|---|---|
committer | sjain1107 <sakshijain1107@gmail.com> | 2015-08-18 14:52:19 +0530 |
commit | c351a823adf7b92e8439bf68c043019b95733d18 (patch) | |
tree | 0fbdeffb9f38a82ecae74c79071d2a29aa2aa245 /activerecord | |
parent | a293812bffbc6e634e1a6e6794e9dec537d522a3 (diff) | |
download | rails-c351a823adf7b92e8439bf68c043019b95733d18.tar.gz rails-c351a823adf7b92e8439bf68c043019b95733d18.tar.bz2 rails-c351a823adf7b92e8439bf68c043019b95733d18.zip |
Added docs for TableDefinition #coloumns & #remove_column [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index d17e272ed1..1658317408 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -214,6 +214,7 @@ module ActiveRecord @name = name end + # Returns an array of ColumnDefinitions for the columns of the table. def columns; @columns_hash.values; end # Returns a ColumnDefinition for the column with name +name+. @@ -369,6 +370,8 @@ module ActiveRecord self end + # remove the column +name+ from the table. + # remove_column(:account_id) def remove_column(name) @columns_hash.delete name.to_s end |