module Postgresql::Check::Table
Public Instance Methods
check(condition, options)
click to toggle source
# File lib/postgresql/check/table.rb, line 4 def check(condition, options) @base.add_check check_table_name, condition, options end
remove_check(options)
click to toggle source
# File lib/postgresql/check/table.rb, line 8 def remove_check(options) @base.remove_check check_table_name, options end
Private Instance Methods
check_table_name()
click to toggle source
@api private
# File lib/postgresql/check/table.rb, line 14 def check_table_name if ActiveRecord::VERSION::STRING > '4.2' @name else @table_name end end