lib/dbf/schema.rb in dbf-4.1.3 vs lib/dbf/schema.rb in dbf-4.1.4

- old
+ new

@@ -30,11 +30,12 @@ # t.column :is_active, :boolean # t.column :age, :integer # t.column :notes, :text # end # - # @param [Symbol] format Valid options are :activerecord and :json + # @param format [Symbol] format Valid options are :activerecord and :json + # @param table_only [Boolean] # @return [String] def schema(format = :activerecord, table_only = false) schema_method_name = schema_name(format) send(schema_method_name, table_only) rescue NameError @@ -73,18 +74,18 @@ columns.map(&:to_hash).to_json end # ActiveRecord schema definition # - # @param [DBF::Column] + # @param column [DBF::Column] # @return [String] def activerecord_schema_definition(column) "\"#{column.underscored_name}\", #{schema_data_type(column, :activerecord)}\n" end # Sequel schema definition # - # @params [DBF::Column] + # @param column [DBF::Column] # @return [String] def sequel_schema_definition(column) ":#{column.underscored_name}, #{schema_data_type(column, :sequel)}\n" end