ADD model Ignore
This commit is contained in:
parent
3b22ad0a54
commit
b8557840c8
|
@ -0,0 +1,3 @@
|
|||
class Ignore < ActiveRecord::Base
|
||||
attr_accessible :content, :name
|
||||
end
|
|
@ -0,0 +1,10 @@
|
|||
class CreateIgnores < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :ignores do |t|
|
||||
t.string "name"
|
||||
t.text "content"
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20191112072253) do
|
||||
ActiveRecord::Schema.define(:version => 20191112072843) do
|
||||
|
||||
create_table "activities", :force => true do |t|
|
||||
t.integer "act_id", :null => false
|
||||
|
@ -1329,6 +1329,13 @@ ActiveRecord::Schema.define(:version => 20191112072253) do
|
|||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "ignores", :force => true do |t|
|
||||
t.string "name"
|
||||
t.text "content"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "innodb_monitor", :id => false, :force => true do |t|
|
||||
t.integer "a"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue