Guest User

Untitled

a guest
Mar 8th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. knowtheory:~/Sites/fysk notheory$ script/console
  2. Loading development environment.
  3. >> text = StoredText.find(:first)
  4. => #<StoredText:0x351a394 @attributes={"content_font_size"=>nil, "grouped_with"=>nil, "name"=>"how_do_i_shot_web", "grouped_as"=>nil, "content_valign"=>nil, "content_font"=>nil, "published_year"=>"2007", "processed"=>nil, "type"=>"StoredText", "owned_context_id"=>"2", "content_effect"=>"none", "copyright_statement"=>nil, "id"=>"839", "abuse_reports"=>"0", "file_extension"=>nil, "file_server"=>nil, "byte_size"=>"0", "description"=>"", "content_color"=>nil, "content_halign"=>nil, "content"=>"How do i shot web spiderman?", "user_id"=>"1", "content_coder"=>"text/plain", "duration"=>"0"}
  5. >> text.content_font_size = nil
  6. => nil
  7. >> text.valid?
  8. => false
  9. >> reload!
  10. Reloading...
  11. => {"ActiveRecord::Base"=>#<ActiveRecord::ConnectionAdapters::MysqlAdapter:0x352bf54 @runtime=0.0106618404388428, @config={:username=>"root", :adapter=>"mysql", :database=>"vjuicer_fysk_development", :password=>nil, :allow_concurrency=>false, :host=>"localhost"}, connection#<Mysql>, @connection_options=["localhost", "root", "", "vjuicer_fysk_development", nil, nil], @logger=#<Hodel3000CompliantLogger:0x36ffc7c @progname=nil, @logdev=#<Logger::LogDevice:0x36ffbf0 @shift_age=0, @filename="script/../config/../config/../log/development.log", @mutex=#<Logger::LogDevice::LogDeviceMutex:0x36ffbc8 @mon_entering_queue=[], @mon_count=0, @mon_owner=nil, @mon_waiting_queue=[]>, dev#<File:script/../config/../config/../log/development.log, @shift_size=1048576>, formatternil, level0, default_formatter#<Logger::Formatter:0x36ffc18 @datetime_format=nil>, last_verification0}
  12. >> text.valid?
  13. => true
  14. >>
Add Comment
Please, Sign In to add comment