mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
11
lib/tasks/sync_table_structure.rake
Normal file
11
lib/tasks/sync_table_structure.rake
Normal file
@@ -0,0 +1,11 @@
|
||||
desc "Initialize the data table structure"
|
||||
|
||||
namespace :sync_table_structure do
|
||||
task import_csv: :environment do
|
||||
puts "init table structure......."
|
||||
|
||||
system "mysql -uroot -p123456 -h127.0.0.1 forge_development < #{Rails.root}/db/structure.sql"
|
||||
|
||||
puts "init success"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user