These two lines should do this method's job:
```ruby
self.update_attribute :sash_id, Sash.create.id if sash.nil?
self.sash
```