A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.
posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord| using System; | |
| using System.Collections.Generic; | |
| [System.Diagnostics.DebuggerDisplay("{Name}: ({X0},{Y0},{Z0})")] | |
| public class PGRegion | |
| { | |
| public string Name { get; set; } | |
| public float X0 { get; set; } | |
| public float Y0 { get; set; } | |
| public float Z0 { get; set; } |
| def after_commit_environment(strategy = :deletion, &block) | |
| obj = self | |
| begin | |
| before(:all) do | |
| obj.use_transactional_fixtures = false | |
| DatabaseCleaner.strategy = strategy | |
| end | |
| before do |