Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "rubygems"
- require 'active_record'
- ActiveRecord::Base.establish_connection(
- :adapter => "mysql",
- :database => "test",
- :username => "root",
- :password => "123",
- :host => "localhost"
- )
- ActiveRecord::Schema.define do
- create_table :children, :force => true do |t|
- t.column :parent_id, :integer
- t.column :name, :string
- t.column :position, :integer
- end
- end
Add Comment
Please, Sign In to add comment