I've been essentially java programmer and beginner for Ruby Rails. In java, to seed database ant task operates, the ant task execute SQL script. SQL script is essentially group of place claims.

I expect there has to be some same as ant task on Ruby Rails platform for running sql script?

Edited in reaction to reply to by Nikita:

Although it's possible to use Migration among method for seeding data. But I'd rather not do rework of writing migration classes akin to sql scripts. and so i take some solution through which i've to professional sql script file only. I wish to manage by database only through sql code.

Should you produced your rails application from console, you ought to have db/seeds.rb file. It populates database tables with default values.

Then, you are able to execute rake db:seed.

The autogenerated seeds.rb consists of this situation, that ought to obvious any doubts

# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#   
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Major.create(:name => 'Daley', :city => cities.first)

Note, that you don't put any sql claims inside it (not usually). Even though you can continue to execute sql in the seed file or migration, using ruby code and models is preferred.

around the comment
Maybe we've different knowledge of what 'seed' means.
Anyway, migrations should help here.
It's too big subject to pay for it during my publish, so please browse the guide. Even though it concentrates on creating/removing tables, you are able to manipulate data equally well inside a migration.