I assume that you want to basically convert your SQL file to a Rails database schema file without having to go through and do it yourself manually.
One quick way to do this is to manually execute the SQL file, possibly by logging into your database and loading the file this way, or by doing something like the one done in this question :
ActiveRecord::Base.connection.execute(IO.read("path/to/file"))
After you have the schema defined in your .sql file loaded into your database, you will want to follow these steps in this question :
rake db:schema:dump, db/schema.rb .
db/migrate/001_original_schema.rb, schema.rb :
class OriginalDatabaseMigration < ActiveRecord::Migration
def self.up
end
def self.down
end
end