preliminary migrate rails operation to pure sql
base db migration finished
user base trigger added