mirror of
https://github.com/zhigang1992/redpotion.git
synced 2026-01-12 22:51:36 +08:00
Adds a :created_at timestamp to Contributor model.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
class Contributer < CDQManagedObject
|
||||
scope :all, sort_by(:name)
|
||||
scope :starts_with_s, where(:name).begins_with('s').sort_by(:name)
|
||||
|
||||
def cell
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
schema "0001 initial" do
|
||||
entity "Contributer" do
|
||||
string :name, optional: false
|
||||
|
||||
datetime :created_at
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user