update sheet number
This commit is contained in:
parent
1e70d9e8cf
commit
b1df467c45
14
db/migrate/20140413122412_update_sheet_number.rb
Normal file
14
db/migrate/20140413122412_update_sheet_number.rb
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
class UpdateSheetNumber < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
Sheet.all.each do |s|
|
||||||
|
s.generate_sheet_number
|
||||||
|
s.save
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20140410151036) do
|
ActiveRecord::Schema.define(version: 20140413122412) do
|
||||||
|
|
||||||
create_table "admins", force: true do |t|
|
create_table "admins", force: true do |t|
|
||||||
t.string "email", default: "", null: false
|
t.string "email", default: "", null: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user